diff --git a/Cargo.toml b/Cargo.toml index cec28d336..562d9359f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ indexmap = { version = "2.2.3", optional = true } itoa = "1.0" memchr = { version = "2", default-features = false } ryu = "1.0" -serde = { version = "1.0.194", default-features = false } +serde_core = { version = "1.0.220", default-features = false } [dev-dependencies] automod = "1.0.11" @@ -48,12 +48,12 @@ features = ["float_roundtrip", "raw_value", "unbounded_depth"] [features] default = ["std"] -std = ["memchr/std", "serde/std"] +std = ["memchr/std", "serde_core/std"] # Provide integration for heap-allocated collections without depending on the # rest of the Rust standard library. # NOTE: Disabling both `std` *and* `alloc` features is not supported yet. -alloc = ["serde/alloc"] +alloc = ["serde_core/alloc"] # Make serde_json::Map use a representation which maintains insertion order. # This allows data to be read into a Value and written back to a JSON string diff --git a/src/lib.rs b/src/lib.rs index f77fa73f4..296149cd7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -378,6 +378,8 @@ extern crate alloc; #[cfg(feature = "std")] extern crate std; +extern crate serde_core as serde; + // Not public API. Used from macro-generated code. #[doc(hidden)] pub mod __private {