]> git.bitcoin.ninja Git - dnssec-prover/commitdiff
Add a dummy binary to test code size with `cargo bloat`
authorMatt Corallo <git@bluematt.me>
Mon, 29 Jul 2024 20:47:17 +0000 (20:47 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 1 Aug 2024 02:10:26 +0000 (02:10 +0000)
validation_bloat_test/Cargo.toml [new file with mode: 0644]
validation_bloat_test/src/main.rs [new file with mode: 0644]

diff --git a/validation_bloat_test/Cargo.toml b/validation_bloat_test/Cargo.toml
new file mode 100644 (file)
index 0000000..1b23fb4
--- /dev/null
@@ -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 (file)
index 0000000..c1cabdb
--- /dev/null
@@ -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();
+}