lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

commit 825e8e043f7b68ba869a05ee6553dd8f6483999b
parent 9bca132bc98fcc3c13147a5f6e8f74aab831106b
Author: triesap <tyson@radroots.org>
Date:   Sat, 18 Jul 2026 08:48:38 +0000

event: close trade feature matrix gaps

- Import trade string conversion only when Serde canonicalization is enabled.
- Compile Serde-dependent trade tests only with the Serde feature.
- Keep std-only and no-default-features library builds warning free.
- Verify strict Clippy, feature-matrix tests, and 100 percent coverage.

Diffstat:
Mcrates/event/src/trade.rs | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/crates/event/src/trade.rs b/crates/event/src/trade.rs @@ -5,12 +5,9 @@ use alloc::{collections::BTreeMap, format, string::ToString}; #[cfg(not(feature = "std"))] use alloc::{string::String, vec::Vec}; #[cfg(all(feature = "std", feature = "serde"))] -use std::collections::BTreeMap; +use std::{collections::BTreeMap, string::ToString}; #[cfg(feature = "std")] -use std::{ - string::{String, ToString}, - vec::Vec, -}; +use std::{string::String, vec::Vec}; use core::fmt; @@ -1076,7 +1073,7 @@ impl<'de> Visitor<'de> for NoDuplicateJsonValueVisitor { } } -#[cfg(test)] +#[cfg(all(test, feature = "serde"))] mod tests { use super::*;