From: Matt Corallo Date: Mon, 29 Jul 2024 20:47:17 +0000 (+0000) Subject: Add a dummy binary to test code size with `cargo bloat` X-Git-Tag: v0.6.4~9 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=88172b853443e1943afe53474bc8f81138dc744d;p=dnssec-prover Add a dummy binary to test code size with `cargo bloat` --- diff --git a/validation_bloat_test/Cargo.toml b/validation_bloat_test/Cargo.toml new file mode 100644 index 0000000..1b23fb4 --- /dev/null +++ b/validation_bloat_test/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "validation_bloat_test" +version = "0.1.0" +edition = "2021" + +[dependencies] +dnssec-prover = { path = "../", default-features = false, features = ["validation"] } diff --git a/validation_bloat_test/src/main.rs b/validation_bloat_test/src/main.rs new file mode 100644 index 0000000..c1cabdb --- /dev/null +++ b/validation_bloat_test/src/main.rs @@ -0,0 +1,10 @@ +use dnssec_prover::{ser, validation}; + +use std::io::Read; + +fn main() { + let mut input = Vec::new(); + std::io::stdin().lock().read_to_end(&mut input).unwrap(); + let val = ser::parse_rr_stream(&input).unwrap(); + validation::verify_rr_stream(&val).unwrap(); +}