Skip to content

Commit 065a9f6

Browse files
CopilotThoralf-M
andauthored
fix: llvm-cov compilation failure: gate schemars usage behind feature flag (#1064)
* Initial plan * Fix code coverage compilation: gate schemars usage behind cfg(feature = "schemars") Agent-Logs-Url: https://github.com/iotaledger/iota-rust-sdk/sessions/e6987052-c285-4472-a023-853238f65337 Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>
1 parent 5301eb6 commit 065a9f6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

crates/iota-sdk-types/src/serialization_proptests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use crate::*;
99
macro_rules! serialization_test {
1010
($type:ident) => {
1111
paste::item! {
12+
#[cfg(feature = "schemars")]
1213
#[cfg_attr(target_arch = "wasm32", proptest(cases = 50))]
1314
#[cfg_attr(not(target_arch = "wasm32"), proptest)]
1415
#[allow(non_snake_case)]
@@ -35,6 +36,7 @@ macro_rules! serialization_test {
3536
};
3637
}
3738

39+
#[cfg(feature = "schemars")]
3840
fn assert_valid_json_schema<T>(instance: &T)
3941
where
4042
T: serde::Serialize + schemars::JsonSchema,

0 commit comments

Comments
 (0)