From c77525c88d02049349188d4ef105c21b6f69aa43 Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Fri, 1 Nov 2024 17:09:40 -0400 Subject: [PATCH] feat(gadget-blueprint-serde): add `std` feature --- blueprint-serde/Cargo.toml | 4 ++++ blueprint-serde/src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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;