From e5886017b50ffc3c9a648c921af3d4ad6bba36df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?19=E5=B9=B4=E6=A2=A6=E9=86=92?= <3949379+getong@users.noreply.github.com> Date: Sun, 1 Dec 2024 22:25:06 +0800 Subject: [PATCH] Chore: enable serde feature in example code --- examples/raft-kv-memstore-network-v2/Cargo.toml | 1 + examples/raft-kv-memstore-opendal-snapshot-data/Cargo.toml | 1 + examples/raft-kv-memstore-singlethreaded/Cargo.toml | 1 + examples/raft-kv-memstore/Cargo.toml | 1 + examples/raft-kv-rocksdb/Cargo.toml | 1 + 5 files changed, 5 insertions(+) diff --git a/examples/raft-kv-memstore-network-v2/Cargo.toml b/examples/raft-kv-memstore-network-v2/Cargo.toml index ff1cc8279..adbda05e0 100644 --- a/examples/raft-kv-memstore-network-v2/Cargo.toml +++ b/examples/raft-kv-memstore-network-v2/Cargo.toml @@ -29,6 +29,7 @@ tracing-subscriber = { version = "0.3.0", features = ["env-filter"] } maplit = "1.0.2" [features] +serde = [] [package.metadata.docs.rs] all-features = true diff --git a/examples/raft-kv-memstore-opendal-snapshot-data/Cargo.toml b/examples/raft-kv-memstore-opendal-snapshot-data/Cargo.toml index 197708194..b1fa5d8e7 100644 --- a/examples/raft-kv-memstore-opendal-snapshot-data/Cargo.toml +++ b/examples/raft-kv-memstore-opendal-snapshot-data/Cargo.toml @@ -32,6 +32,7 @@ opendal = "0.48.0" maplit = "1.0.2" [features] +serde = [] [package.metadata.docs.rs] all-features = true diff --git a/examples/raft-kv-memstore-singlethreaded/Cargo.toml b/examples/raft-kv-memstore-singlethreaded/Cargo.toml index b13035ed2..1e9c3c1c9 100644 --- a/examples/raft-kv-memstore-singlethreaded/Cargo.toml +++ b/examples/raft-kv-memstore-singlethreaded/Cargo.toml @@ -32,6 +32,7 @@ tracing-subscriber = { version = "0.3.0", features = ["env-filter"] } maplit = "1.0.2" [features] +serde = [] [package.metadata.docs.rs] all-features = true diff --git a/examples/raft-kv-memstore/Cargo.toml b/examples/raft-kv-memstore/Cargo.toml index cb01f7a07..1ec880378 100644 --- a/examples/raft-kv-memstore/Cargo.toml +++ b/examples/raft-kv-memstore/Cargo.toml @@ -37,6 +37,7 @@ anyhow = "1.0.63" maplit = "1.0.2" [features] +serde = [] [package.metadata.docs.rs] all-features = true diff --git a/examples/raft-kv-rocksdb/Cargo.toml b/examples/raft-kv-rocksdb/Cargo.toml index 285ea16de..b5cbf01e3 100644 --- a/examples/raft-kv-rocksdb/Cargo.toml +++ b/examples/raft-kv-rocksdb/Cargo.toml @@ -48,6 +48,7 @@ tempfile = { version = "3.4.0" } [features] +serde = [] [package.metadata.docs.rs] all-features = true