From 5aa6ea751fed07bdfbe169ce07a1ad0e3b1d14f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Wed, 19 Jun 2024 15:43:50 +0200 Subject: [PATCH] Remove cbor feature --- Cargo.toml | 8 -------- src/lib.rs | 18 ------------------ 2 files changed, 26 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 56c7b8d..a2e32e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,13 +15,5 @@ edition = "2021" heapless = { version = "0.8", default-features = false } serde = { version = "1.0", default-features = false } -[dependencies.serde_cbor] -version = "0.11.0" -default-features = false -optional = true - -[features] -cbor = ["serde_cbor"] - [dev-dependencies] serde_test = "1.0.176" diff --git a/src/lib.rs b/src/lib.rs index 7a276d8..9222ad1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -546,21 +546,3 @@ mod tests_serde { ); } } - -#[cfg(test)] -#[cfg(feature = "cbor")] -mod tests { - use super::*; - - #[test] - fn test_client_data_hash() { - let mut minimal = [ - 0x50u8, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x30, 0x41, 0x42, 0x43, - 0x44, 0x45, 0x46, - ]; - - let client_data_hash: Bytes<17> = serde_cbor::de::from_mut_slice(&mut minimal).unwrap(); - - assert_eq!(client_data_hash, b"1234567890ABCDEF"); - } -}