# 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 = "subms-hyperloglog"
version = "0.5.2"
authors = ["Kieran Smith <oss@submillisecond.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "submillisecond.com cookbook recipe - data-structures: subms-hyperloglog. Distinct-count cardinality estimator. ~1% standard error at ~16 KB."
homepage = "https://submillisecond.com/cookbook/recipes/subms-hyperloglog"
readme = "README.md"
keywords = [
    "hyperloglog",
    "cardinality",
    "probabilistic",
    "subms",
]
categories = [
    "data-structures",
    "algorithms",
]
license = "MIT OR Apache-2.0"

[features]
default = []
harness = ["dep:subms"]
serde = ["dep:serde"]
sparse = []
union-intersect = []

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

[[example]]
name = "perf_features"
path = "examples/perf_features.rs"
required-features = [
    "harness",
    "sparse",
    "union-intersect",
]

[[example]]
name = "perf_main"
path = "examples/perf_main.rs"
required-features = ["harness"]

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

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

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

[dependencies.subms]
version = "0.5.2"
optional = true
