[package] name = "line_cardinality" version = "2.0.0" description = "High performance line cardinality counts and estimates" authors.workspace = true edition.workspace = true license.workspace = true readme = "README.md" repository.workspace = true keywords.workspace = true categories = [] autobenches = false rust-version = "1.67.1" [features] default = ["ahash", "compile-time-rng", "memchr"] # Ability to read file handles via Read/BufRead file = [] # Ability to read file handles via memory-mapping memmap = ["dep:memmap2", "memchr"] # Enables compile-time RNG for ahash seed compile-time-rng = ["ahash/compile-time-rng"] # Enables an algorithm that only stores hashes and does not properly check lines for equality (e.g. it's prone to rare collisions) hash-only = [] # Features required for the benchmarks to run. This feature set is not stable and should not be used outside of running the benchmarks. bench = ["ahash", "memmap", "memchr", "file"] [dependencies] cfg-if.workspace = true # More performant hashing algorithm ahash = { version = "0.8", default-features = false, optional = true } memmap2 = { workspace = true, optional = true } # Ability to read data from &[u8] memchr = { version = "2", optional = true } bstr.workspace = true hashbrown = { version = "0.14", default-features = false } [dev-dependencies] criterion.workspace = true [[bench]] name = "benches" harness = false required-features = ["bench"]