[package]
edition = "2024"
rust-version = "1.88.0"
name = "sonic-server"
version = "1.6.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 = ["tikv-jemallocator"]
benchmark = []
default = [
"allocator-jemalloc",
"tokenizer-chinese",
]
tokenizer-chinese = ["sonic-core/tokenizer-chinese"]
tokenizer-japanese = ["sonic-core/tokenizer-japanese"]
[[bin]]
name = "sonic"
path = "src/main.rs"
doc = false
[[test]]
name = "auto_completion"
path = "tests/auto_completion.rs"
[[test]]
name = "back_compat"
path = "tests/back_compat.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 = "ingest"
path = "tests/ingest.rs"
[[test]]
name = "language_detection"
path = "tests/language_detection.rs"
[[test]]
name = "loose_matching"
path = "tests/loose_matching.rs"
[[test]]
name = "search_scoping"
path = "tests/search_scoping.rs"
[[test]]
name = "typo_correction"
path = "tests/typo_correction.rs"
[dependencies.clap]
version = "4"
features = [
"std",
"cargo",
]
[dependencies.config]
version = "0.15"
features = ["toml"]
default-features = false
[dependencies.hashbrown]
version = "0.17"
[dependencies.lazy_static]
version = "1"
[dependencies.rand]
version = "0.10"
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
[dependencies.sonic-core]
version = "0.0.1"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
[dev-dependencies.whatlang]
version = "0.18"
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = ["signal"]
[target."cfg(unix)".dependencies.tikv-jemallocator]
version = "0.6"
optional = true
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = ["Win32_System_Console"]