Skip to content

Commit f7337ff

Browse files
authored
Support serde_core and remove dependencies on serde_derive (#889)
2 parents dca6df8 + c1d73b3 commit f7337ff

File tree

12 files changed

+622
-79
lines changed

12 files changed

+622
-79
lines changed

Cargo.lock

Lines changed: 18 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

serde_with/Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ default = ["std", "macros"]
3737
#! Some features require `alloc` or `std` support and might not work in a `no_std` environment.
3838

3939
## Enable support for types from the `alloc` crate when running in a `no_std` environment.
40-
alloc = ["serde/alloc", "base64?/alloc", "chrono_0_4?/alloc", "hex?/alloc", "serde_json?/alloc", "time_0_3?/alloc"]
40+
alloc = ["serde_core/alloc", "base64?/alloc", "chrono_0_4?/alloc", "hex?/alloc", "serde_json?/alloc", "time_0_3?/alloc"]
4141
## Enables support for various types from the std library.
4242
## This will enable `std` support in all dependencies too.
4343
## The feature enabled by default and also enables `alloc`.
44-
std = ["alloc", "serde/std", "chrono_0_4?/clock", "chrono_0_4?/std", "indexmap_1?/std", "indexmap_2?/std", "time_0_3?/serde-well-known", "time_0_3?/std", "schemars_0_9?/std", "schemars_1?/std"]
44+
std = ["alloc", "serde_core/std", "chrono_0_4?/clock", "chrono_0_4?/std", "indexmap_1?/std", "indexmap_2?/std", "time_0_3?/serde-well-known", "time_0_3?/std", "schemars_0_9?/std", "schemars_1?/std"]
4545

4646
#! # Documentation
4747
#!
@@ -161,9 +161,8 @@ indexmap_2 = { package = "indexmap", version = "2.0", optional = true, default-f
161161
schemars_0_8 = { package = "schemars", version = "0.8.16", optional = true, default-features = false }
162162
schemars_0_9 = { package = "schemars", version = "0.9.0", optional = true, default-features = false }
163163
schemars_1 = { package = "schemars", version = "1.0.2", optional = true, default-features = false }
164-
serde = { version = "1.0.152", default-features = false }
165-
serde_derive = "1.0.152"
166-
serde_json = { version = "1.0.45", optional = true, default-features = false }
164+
serde_core = { version = "1.0.225", default-features = false, features = ["result"] }
165+
serde_json = { version = "1.0.145", optional = true, default-features = false }
167166
serde_with_macros = { path = "../serde_with_macros", version = "=3.14.1", optional = true }
168167
time_0_3 = { package = "time", version = "~0.3.36", optional = true, default-features = false }
169168

0 commit comments

Comments
 (0)