apache-datasketches-sys
Raw cxx bridge to the Apache DataSketches
C++ library. Do not use this crate directly — its API is an unstable,
low-level FFI surface that can change without a semver bump to the safe
layer's public API.
Use apache-datasketches
instead, which wraps this crate in a safe, idiomatic Rust API.
Building
Requires a C++17 compiler on PATH (used by cc/cxx-build). The
datasketches-cpp headers this crate compiles against are vendored in
vendor/datasketches-cpp — see vendor/README.md for how that copy is
kept in sync with the upstream project.
Features
default = [] — no sketch family is compiled in unless you opt in
explicitly. Enable one or more of:
hll— raw bridge to the HLL (HyperLogLog) sketch and union C++ types.theta— raw bridge to the Theta sketch, union, intersection, a-not-b, and Jaccard similarity C++ types.cpc— raw bridge to the CPC (Compressed Probabilistic Counting) sketch and union C++ types.tuple— raw bridge to the Tuple (ArrayOfDoubles) sketch, union, intersection, a-not-b, and Jaccard similarity C++ types.
[]
= { = "0.2", = ["hll"] }
[]
= { = "0.2", = ["theta"] }
[]
= { = "0.2", = ["cpc"] }
[]
= { = "0.2", = ["tuple"] }
[]
= { = "0.2", = ["hll", "theta", "cpc", "tuple"] }