diff --git a/Cargo.toml b/Cargo.toml index bdac488..840f939 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ default = ["std"] std = [] [dependencies] -serde = { version = "1.0", optional = true } +serde = { version = "1.0", default-features = false, optional = true } [dev-dependencies] bincode = "1.3" diff --git a/src/lib.rs b/src/lib.rs index 49e314e..3babaf1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -242,7 +242,7 @@ macro_rules! nonmax { D: serde::Deserializer<'de>, { let value = $primitive::deserialize(deserializer)?; - use std::convert::TryFrom; + use core::convert::TryFrom; Self::try_from(value).map_err(serde::de::Error::custom) } }