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.5"
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
33
34# The profile that 'cargo dist' will build with
35[profile.dist]
36inherits = "release"
37lto = "thin"
38
39# Config for 'cargo dist'
40[workspace.metadata.dist]
41# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
42cargo-dist-version = "0.13.3"
43# CI backends to support
44ci = ["github"]
45# The installers to generate for each app
46installers = ["shell"]
47# Target platforms to build apps for (Rust target-triple syntax)
48targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
49# Publish jobs to run in CI
50pr-run-mode = "plan"
51# Whether to install an updater program
52install-updater = false