[package]
edition = "2024"
rust-version = "1.88.0"
name = "sonic-server"
version = "1.7.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
[[bench]]
name = "wikipedia"
path = "benches/wikipedia.rs"
harness = false
[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.1.0"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
[dev-dependencies.arrow-array]
version = "=59.0.0"
default-features = false
[dev-dependencies.criterion]
version = "=0.5.1"
features = [
"html_reports",
"plotters",
]
default-features = false
[dev-dependencies.parquet]
version = "=59.0.0"
features = [
"arrow",
"snap",
]
default-features = false
[dev-dependencies.sonic_client]
version = "=0.2.0"
features = [
"sync",
"tracing",
]
[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"]