[package]
edition = "2024"
rust-version = "1.88.0"
name = "sonic-server"
version = "1.7.2"
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 = "control_info"
path = "tests/control_info.rs"
[[test]]
name = "control_ping"
path = "tests/control_ping.rs"
[[test]]
name = "control_trigger"
path = "tests/control_trigger.rs"
[[test]]
name = "ingest_count"
path = "tests/ingest_count.rs"
[[test]]
name = "ingest_flushb"
path = "tests/ingest_flushb.rs"
[[test]]
name = "ingest_flushc"
path = "tests/ingest_flushc.rs"
[[test]]
name = "ingest_flusho"
path = "tests/ingest_flusho.rs"
[[test]]
name = "ingest_ping"
path = "tests/ingest_ping.rs"
[[test]]
name = "ingest_pop"
path = "tests/ingest_pop.rs"
[[test]]
name = "ingest_push"
path = "tests/ingest_push.rs"
[[test]]
name = "search_list"
path = "tests/search_list.rs"
[[test]]
name = "search_ping"
path = "tests/search_ping.rs"
[[test]]
name = "search_query"
path = "tests/search_query.rs"
[[test]]
name = "search_suggest"
path = "tests/search_suggest.rs"
[[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.1"
[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.3.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"]