230310.2 · 26b93a039e5fe679d4b01f603fb1d83bc7a9f50f
bin: add 'sampler' program
I've used this a few times to craft haystacks for benchmarks. I couldn't come up with a simple way of doing this using a shell pipeline, although I'm sure it could be done with 'awk'.
reading declarations
Changes to bin/rust/sampler/Cargo.toml. All files
@@ -0,0 +1,16 @@+[package]+name = "sampler"+version = "0.1.0"+edition = "2021"++# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html++[dependencies]+anyhow = "1.0.69"+bstr = "1.2.0"+fastrand = "1.9.0"+regex = "1.7.1"++[[bin]]+name = "sampler"+path = "main.rs"