samkhya-core 1.0.0

samkhya: sketches, LpBound envelopes, Puffin sidecars, and residual correctors for cardinality estimation
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "samkhya-core"
version = "1.0.0"
authors = ["Prateek Singh"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "samkhya: sketches, LpBound envelopes, Puffin sidecars, and residual correctors for cardinality estimation"
homepage = "https://github.com/singhpratech/samkhya"
readme = "README.md"
keywords = [
    "database",
    "cardinality",
    "query-optimizer",
    "datafusion",
    "duckdb",
]
categories = ["database"]
license = "Apache-2.0"
repository = "https://github.com/singhpratech/samkhya"
resolver = "2"

[features]
additive_gbt = ["dep:gbdt"]
gbt = ["dep:gbdt"]
llm_http = ["dep:ureq"]
lp_solver = ["dep:good_lp"]
tabpfn = ["tabpfn_http"]
tabpfn_http = ["dep:ureq"]
zstd = ["dep:zstd"]

[lib]
name = "samkhya_core"
path = "src/lib.rs"

[[example]]
name = "bloom_fpr_sweep"
path = "examples/bloom_fpr_sweep.rs"

[[example]]
name = "cms_bound_sweep"
path = "examples/cms_bound_sweep.rs"

[[example]]
name = "histogram_accuracy"
path = "examples/histogram_accuracy.rs"

[[example]]
name = "histogram_baselines"
path = "examples/histogram_baselines.rs"

[[example]]
name = "hll_precision_sweep"
path = "examples/hll_precision_sweep.rs"

[[example]]
name = "hll_precision_sweep_10m"
path = "examples/hll_precision_sweep_10m.rs"

[[example]]
name = "inspect_puffin"
path = "examples/inspect_puffin.rs"

[[example]]
name = "lpbound_latency"
path = "examples/lpbound_latency.rs"

[[example]]
name = "lpbound_tightness"
path = "examples/lpbound_tightness.rs"

[[example]]
name = "memory_profile"
path = "examples/memory_profile.rs"

[[example]]
name = "sketch_to_puffin"
path = "examples/sketch_to_puffin.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "properties"
path = "tests/properties.rs"

[[test]]
name = "property_lpbound"
path = "tests/property_lpbound.rs"

[[test]]
name = "property_puffin"
path = "tests/property_puffin.rs"

[[test]]
name = "property_sketches"
path = "tests/property_sketches.rs"

[[bench]]
name = "puffin"
path = "benches/puffin.rs"
harness = false

[[bench]]
name = "sketches"
path = "benches/sketches.rs"
harness = false

[[bench]]
name = "stress"
path = "benches/stress.rs"
harness = false

[dependencies.bincode]
version = "1.3"

[dependencies.byteorder]
version = "1.5"

[dependencies.gbdt]
version = "0.1"
optional = true

[dependencies.good_lp]
version = "1.8"
features = ["microlp"]
optional = true
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.rusqlite]
version = "0.31"
features = ["bundled"]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "1"

[dependencies.twox-hash]
version = "1.6"

[dependencies.ureq]
version = "2"
features = [
    "json",
    "tls",
]
optional = true
default-features = false

[dependencies.zstd]
version = "0.13"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1.5"

[dev-dependencies.tempfile]
version = "3"