Skip to content

Commit c8544c7

Browse files
committed
create serde_deprecated feature flag
1 parent 25fde91 commit c8544c7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,7 @@ tokio-test = { version = "0.4" }
5252
tonic = {version = "0.12.0", features = ["tls", "tls-roots"]} # Use system trust roots.
5353
tracing-subscriber = "0.3"
5454
sqlite = "0.33"
55+
56+
[features]
57+
default = [serde_deprecated]
58+
serde_deprecated = [] # enables `serde` for composite data structures; see `README.md` for more information

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,7 @@ cargo run
103103

104104
Updating these files should only be done when the node's API, determined by the
105105
schemas, changes and we need to support the new API in the SDK.
106+
107+
The flag `serde_deprecated` guards `serde::Serialize` and `serde::Deserialize`
108+
implementations for composite data structures where these implementations will
109+
eventually be deprecated. Enable the flag to use them.

0 commit comments

Comments
 (0)