Rust implementation of the CVM algorithm for counting distinct elements in a stream
1[package]
2name = "cvmcount"
3description = "use the CVM algorithm to quickly estimate the number of distinct elements in a stream"
4readme = "README.md"
5license = "MIT OR Apache-2.0"
6repository = "https://github.com/urschrei/cvmcount"
7
8version = "0.1.0"
9edition = "2021"
10
11[dependencies]
12rand = "0.8.5"
13regex = "1.10.4"
14clap = { version = "4.5.4", features = ["cargo"] }
15
16[lib]
17name = "cvmcount"
18path = "src/lib.rs"
19doctest = false
20
21[[bin]]
22name = "cvmcount"
23path = "src/main.rs"
24test = false
25
26[profile.release]
27lto = true
28codegen-units = 1
29
30[profile.bench]
31lto = true
32codegen-units = 1