[package]
name = "dgen-data"
version = "0.2.0"
edition = "2021"
authors = ["Russ Fellows <russ.fellows@gmail.com>"]
license = "MIT OR Apache-2.0"
description = "High-performance random data generation with controllable deduplication and compression"
repository = "https://github.com/russfellows/dgen-rs"
readme = "README.md"
keywords = ["data", "generation", "benchmark", "performance", "numa"]
categories = ["development-tools::profiling", "algorithms"]
[lib]
name = "dgen_data"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "streaming-bench"
path = "benches/streaming_throughput.rs"
[[example]]
name = "numa-test"
path = "examples/numa_test.rs"
required-features = ["numa"]
[dependencies]
rand = { version = "0.9", features = ["std", "alloc"] }
rand_xoshiro = "0.7"
rayon = "1.10"
bytes = "^1.10"
pyo3 = { version = "0.27", features = ["extension-module"], optional = true }
hwlocality = { version = "1.0.0-alpha.11", optional = true }
core_affinity = { version = "0.8", optional = true }
num_cpus = "1.16"
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
anyhow = "1.0"
thiserror = "1.0"
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
tempfile = "3.20"
[features]
default = ["python-bindings", "numa", "thread-pinning"]
python-bindings = ["pyo3"]
numa = ["hwlocality"]
thread-pinning = ["core_affinity"]
[profile.release]
lto = true
codegen-units = 1
opt-level = 3
[profile.bench]
inherits = "release"