Skip to content

Commit cd6fc1e

Browse files
try disabling schemars for wasm
1 parent cdf5cba commit cd6fc1e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/iota-sdk-types/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test:
1818
# --all-features except `uniffi`
1919
.PHONY: wasm
2020
wasm:
21-
CC=clang wasm-pack test --node -F serde,schemars,rand,hash,proptest
21+
CC=clang wasm-pack test --node -F serde,rand,hash,proptest
2222

2323
%:
2424
$(MAKE) -C ../.. $@

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)