diff --git a/crates/crunch-envelope/Cargo.toml b/crates/crunch-envelope/Cargo.toml index 4b7efcc..0b66370 100644 --- a/crates/crunch-envelope/Cargo.toml +++ b/crates/crunch-envelope/Cargo.toml @@ -9,9 +9,6 @@ edition = "2021" name = "envelope_benchmark" harness = false -[profile.bench] -debug = true - [features] default = ["json", "proto"] json = ["dep:serde", "dep:serde_json", "dep:base64"] diff --git a/crates/crunch-envelope/src/lib.rs b/crates/crunch-envelope/src/lib.rs index ad294a0..3e6dbfa 100644 --- a/crates/crunch-envelope/src/lib.rs +++ b/crates/crunch-envelope/src/lib.rs @@ -1,3 +1,4 @@ +#[allow(dead_code)] mod envelope_capnp; #[cfg(feature = "json")] @@ -47,8 +48,6 @@ pub fn wrap<'a>(domain: &'a str, entity: &'a str, content: &'a [u8]) -> Vec metadata.set_domain(domain); metadata.set_entity(entity); - - serialize::write_message_to_words(&builder) } diff --git a/crates/test-bin/src/main.rs b/crates/test-bin/src/main.rs index b70e6fe..b250fd9 100644 --- a/crates/test-bin/src/main.rs +++ b/crates/test-bin/src/main.rs @@ -19,9 +19,9 @@ fn main() { let large_content: [u8; 1000000] = [0; 1000000]; - envelope_capnp_benchmark(&large_content);; + envelope_capnp_benchmark(&large_content); - envelope_json_benchmark(&large_content);; + envelope_json_benchmark(&large_content); println!("done") }