diff --git a/blueprint-serde/Cargo.toml b/blueprint-serde/Cargo.toml index 9604aebf..bbcac65f 100644 --- a/blueprint-serde/Cargo.toml +++ b/blueprint-serde/Cargo.toml @@ -17,3 +17,7 @@ serde_test.workspace = true [lints] workspace = true + +[features] +default = ["std"] +std = [] \ No newline at end of file diff --git a/blueprint-serde/src/lib.rs b/blueprint-serde/src/lib.rs index 157ee435..d58b1b96 100644 --- a/blueprint-serde/src/lib.rs +++ b/blueprint-serde/src/lib.rs @@ -1,4 +1,4 @@ -#![no_std] +#![cfg_attr(feature = "std", no_std)] mod de; pub mod error;