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 default-features = false somewhere in the dependency tree.

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.

ahash default bench? compile-time-rng
memchr default bench? memmap?

Enables memchr

Ability to read data from &[u8]