sonic-core 0.3.0

Fast, lightweight and schema-less search backend.
# 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"
rust-version = "1.91.0"
name = "sonic-core"
version = "0.3.0"
authors = [
    "Valerian Saliou <valerian@valeriansaliou.name>",
    "Baptiste Jamin <baptistejamin@gmail.com>",
    "Rémi Bardon <remi@remibardon.name>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, lightweight and schema-less search backend."
homepage = "https://github.com/valeriansaliou/sonic"
readme = "README.md"
keywords = [
    "search",
    "query",
    "server",
    "index",
]
categories = [
    "database-implementations",
    "web-programming",
]
license = "MPL-2.0"
repository = "https://github.com/valeriansaliou/sonic.git"

[features]
allocator-jemalloc = ["rocksdb/jemalloc"]
benchmark = []
default = [
    "stemming",
    "tokenizer-chinese",
]
stemming = ["dep:snowball"]
tokenizer-chinese = ["jieba-rs"]
tokenizer-japanese = [
    "lindera-core",
    "lindera-dictionary",
    "lindera-tokenizer",
]

[lib]
name = "sonic"
path = "src/lib.rs"
doc = true

[[test]]
name = "auto_completion"
path = "tests/auto_completion.rs"

[[test]]
name = "back_compat"
path = "tests/back_compat.rs"

[[test]]
name = "custom_stopwords"
path = "tests/custom_stopwords.rs"

[[test]]
name = "data_isolation"
path = "tests/data_isolation.rs"

[[test]]
name = "data_removal"
path = "tests/data_removal.rs"

[[test]]
name = "han_folding"
path = "tests/han_folding.rs"

[[test]]
name = "language_detection"
path = "tests/language_detection.rs"

[[test]]
name = "loose_matching"
path = "tests/loose_matching.rs"

[[test]]
name = "non_regression"
path = "tests/non_regression.rs"

[[test]]
name = "normalization"
path = "tests/normalization.rs"

[[test]]
name = "search_scoping"
path = "tests/search_scoping.rs"

[[test]]
name = "search_term_ranking"
path = "tests/search_term_ranking.rs"

[[test]]
name = "typo_correction"
path = "tests/typo_correction.rs"

[dependencies.byteorder]
version = "1"
default-features = false

[dependencies.caseless]
version = "0.2"
default-features = false

[dependencies.fst]
version = "0.3"
default-features = false

[dependencies.fst-levenshtein]
version = "0.3"
default-features = false

[dependencies.fst-regex]
version = "0.3"
default-features = false

[dependencies.hashbrown]
version = "0.17"
features = [
    "allocator-api2",
    "default-hasher",
    "inline-more",
]
default-features = false

[dependencies.indexmap]
version = "2"
features = ["std"]
default-features = false

[dependencies.jieba-rs]
version = "0.10"
features = ["default-dict"]
optional = true
default-features = false

[dependencies.lindera-core]
version = "0.31"
optional = true
default-features = false

[dependencies.lindera-dictionary]
version = "0.31"
features = ["unidic"]
optional = true
default-features = false

[dependencies.lindera-tokenizer]
version = "0.31"
features = ["unidic"]
optional = true
default-features = false

[dependencies.linked_hash_set]
version = "0.1"
default-features = false

[dependencies.radix]
version = "0.6"
default-features = false

[dependencies.regex]
version = "1"
features = [
    "std",
    "unicode",
    "perf",
]
default-features = false

[dependencies.regex-syntax]
version = "0.8"
features = [
    "std",
    "unicode",
]
default-features = false

[dependencies.rocksdb]
version = "0.25"
features = [
    "bindgen-runtime",
    "zstd",
]
default-features = false

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
    "std",
]
default-features = false

[dependencies.snowball]
version = "0.1"
optional = true
default-features = false
package = "waken_snowball"

[dependencies.tracing]
version = "0.1"
default-features = false

[dependencies.twox-hash]
version = "2"
features = ["xxhash32"]
default-features = false

[dependencies.unicode-normalization]
version = "0.1"
default-features = false

[dependencies.unicode-segmentation]
version = "1"
default-features = false

[dependencies.whatlang]
version = "0.18"
default-features = false

[dev-dependencies.config]
version = "0.15"
features = ["toml"]
default-features = false

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "std",
    "fmt",
]
default-features = false