[package] name = "hydrant-ffi" version = "0.1.0" edition = "2024" publish = false [lib] crate-type = ["staticlib"] [features] # off by default because the embedding program owns the process, allocator included. its # symbols are prefixed, so turning it on never swaps out the embedder's own malloc alloc-jemalloc = ["dep:tikv-jemallocator"] [dependencies] hydrant = { path = "..", default-features = false, features = ["indexer", "indexer_stream"] } tokio = { version = "1.0", features = ["rt-multi-thread"] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } serde_json = "1.0" miette = "7" tikv-jemallocator = { version = "0.6", optional = true } [lints.rust] # src/allocator.rs is shared with the binary, which has these too unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("alloc-mimalloc", "alloc-snmalloc"))'] }