Skip to content

Commit f54a378

Browse files
committed
fix: enable serde/alloc for no-default-features compatibility
Ensures that types requiring allocation (like Cow and Box) can still be derived when default features are disabled.
1 parent e37b354 commit f54a378

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

client/http-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jsonrpsee-types = { workspace = true }
2626
jsonrpsee-core = { workspace = true, features = ["client", "http-helpers"] }
2727
rustls = { workspace = true, optional = true, features = ["logging", "std", "tls12", "ring"] }
2828
rustls-platform-verifier = { workspace = true, optional = true }
29-
serde = { workspace = true }
29+
serde = { workspace = true, features = ["alloc"] }
3030
serde_json = { workspace = true }
3131
thiserror = { workspace = true }
3232
tokio = { workspace = true, features = ["time"] }

client/ws-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tracing-subscriber = { workspace = true }
2929
jsonrpsee-test-utils = { path = "../../test-utils" }
3030
tokio = { workspace = true, features = ["macros"] }
3131
serde_json = { workspace = true }
32-
serde = { workspace = true }
32+
serde = { workspace = true, features = ["alloc"] }
3333
rustls = { workspace = true, features = ["logging", "std", "tls12", "ring"] }
3434

3535
[features]

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ workspace = true
2020
async-trait = { workspace = true }
2121
jsonrpsee-types = { workspace = true }
2222
thiserror = { workspace = true }
23-
serde = { workspace = true }
23+
serde = { workspace = true, features = ["alloc"] }
2424
serde_json = { workspace = true, features = ["std", "raw_value"] }
2525
tracing = { workspace = true }
2626

types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ workspace = true
1818

1919
[dependencies]
2020
http = { workspace = true }
21-
serde = { workspace = true }
21+
serde = { workspace = true, features = ["alloc"] }
2222
serde_json = { workspace = true }
2323
thiserror = { workspace = true }

0 commit comments

Comments
 (0)