From 88172b853443e1943afe53474bc8f81138dc744d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 29 Jul 2024 20:47:17 +0000 Subject: [PATCH] Add a dummy binary to test code size with `cargo bloat` --- validation_bloat_test/Cargo.toml | 7 +++++++ validation_bloat_test/src/main.rs | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 validation_bloat_test/Cargo.toml create mode 100644 validation_bloat_test/src/main.rs 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(); +} -- 2.39.5