# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "sift-core"
version = "0.4.0"
authors = ["Botir Khaltaev <btrghstk@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Indexed regex search over codebases (library + grep-like CLI)"
homepage = "https://github.com/botirk38/sift"
documentation = "https://docs.rs/sift-core"
readme = "README.md"
keywords = [
    "grep",
    "regex",
    "search",
    "index",
    "codebase",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/botirk38/sift"

[lib]
name = "sift_core"
path = "src/lib.rs"

[[test]]
name = "grep"
path = "tests/grep/main.rs"

[[test]]
name = "index"
path = "tests/index/main.rs"

[[test]]
name = "query"
path = "tests/query/main.rs"

[[test]]
name = "search"
path = "tests/search/main.rs"

[[bench]]
name = "grep"
path = "benches/grep.rs"
harness = false

[[bench]]
name = "index"
path = "benches/index.rs"
harness = false

[[bench]]
name = "query"
path = "benches/query.rs"
harness = false

[dependencies.bitflags]
version = "2"
features = ["serde"]

[dependencies.bstr]
version = "1"

[dependencies.fslock]
version = "0.2"

[dependencies.grep-cli]
version = "0.1"

[dependencies.grep-matcher]
version = "0.1"

[dependencies.grep-printer]
version = "0.3"

[dependencies.grep-regex]
version = "0.1"

[dependencies.grep-searcher]
version = "0.1"

[dependencies.ignore]
version = "0.4"

[dependencies.memchr]
version = "2"

[dependencies.memmap2]
version = "0.9"

[dependencies.rayon]
version = "1"

[dependencies.regex-automata]
version = "0.4"

[dependencies.regex-syntax]
version = "0.8"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.termcolor]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.unsigned-varint]
version = "0.8"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.tempfile]
version = "3"

[lints.clippy]
no_effect_underscore_binding = "deny"

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
unsafe_code = "deny"
