Skip to content

Commit 81ba3aa

Browse files
authored
Merge pull request #1285 from dtolnay/serdecore
Switch serde dependency to serde_core
2 parents 6beb6cd + d21e8ce commit 81ba3aa

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ indexmap = { version = "2.2.3", optional = true }
1616
itoa = "1.0"
1717
memchr = { version = "2", default-features = false }
1818
ryu = "1.0"
19-
serde = { version = "1.0.194", default-features = false }
19+
serde_core = { version = "1.0.220", default-features = false }
2020

2121
[dev-dependencies]
2222
automod = "1.0.11"
@@ -48,12 +48,12 @@ features = ["float_roundtrip", "raw_value", "unbounded_depth"]
4848
[features]
4949
default = ["std"]
5050

51-
std = ["memchr/std", "serde/std"]
51+
std = ["memchr/std", "serde_core/std"]
5252

5353
# Provide integration for heap-allocated collections without depending on the
5454
# rest of the Rust standard library.
5555
# NOTE: Disabling both `std` *and* `alloc` features is not supported yet.
56-
alloc = ["serde/alloc"]
56+
alloc = ["serde_core/alloc"]
5757

5858
# Make serde_json::Map use a representation which maintains insertion order.
5959
# This allows data to be read into a Value and written back to a JSON string

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ extern crate alloc;
378378
#[cfg(feature = "std")]
379379
extern crate std;
380380

381+
extern crate serde_core as serde;
382+
381383
// Not public API. Used from macro-generated code.
382384
#[doc(hidden)]
383385
pub mod __private {

0 commit comments

Comments
 (0)