Cargo Features
[dependencies]
line_cardinality = { version = "2.0.0", default-features = false, features = ["file", "memmap", "compile-time-rng", "hash-only", "bench"] }
- default = ahash, compile-time-rng, memchr
-
These default features are set whenever
line_cardinality
is added without
somewhere in the dependency tree.default-features = false - file bench?
-
Ability to read file handles via Read/BufRead
- memmap bench? = memchr
-
Ability to read file handles via memory-mapping
Enables memmap2
- compile-time-rng default
-
Enables compile-time RNG for ahash seed
Enables compile-time-rng of ahash
More performant hashing algorithm
- hash-only
-
Enables an algorithm that only stores hashes and does not properly check lines for equality (e.g. it's prone to rare collisions)
- bench = ahash, file, memchr, memmap
-
Features required for the benchmarks to run. This feature set is not stable and should not be used outside of running the benchmarks.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.