Skip to content

Commit 718d9ca

Browse files
committed
feat: add optional feature "serde"
Currently it only reexports serde support for allocator-api2 types. In the future we can start implementing Serialize/Deserialize for our own types.
1 parent 2c0960b commit 718d9ca

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ async = [
4141
# Enables the components using memory allocation.
4242
# If no `std` flag, `alloc` crate is internally used instead. This flag is mainly for `no_std` build.
4343
alloc = ["allocator-api2/alloc"]
44+
# Enables serde support for some of the provided types.
45+
serde = [
46+
"allocator-api2/serde",
47+
]
4448
# Enables the components using `std` crate.
4549
std = [
4650
"alloc",

0 commit comments

Comments
 (0)