diff --git a/libp2p/CHANGELOG.md b/libp2p/CHANGELOG.md index 9b41d2d570a..4161ed054c5 100644 --- a/libp2p/CHANGELOG.md +++ b/libp2p/CHANGELOG.md @@ -3,6 +3,10 @@ - Include gossipsub when compiling for wasm. See [PR 4217]. +- Add `json` feature which exposes `request_response::json`. + See [PR 4188]. + +[PR 4188]: https://github.com/libp2p/rust-libp2p/pull/4188 [PR 4217]: https://github.com/libp2p/rust-libp2p/pull/4217 ## 0.52.1 diff --git a/libp2p/Cargo.toml b/libp2p/Cargo.toml index 280c2d58e05..fd9290cf506 100644 --- a/libp2p/Cargo.toml +++ b/libp2p/Cargo.toml @@ -23,6 +23,7 @@ full = [ "floodsub", "gossipsub", "identify", + "json", "kad", "macros", "mdns", @@ -60,6 +61,7 @@ ed25519 = ["libp2p-identity/ed25519"] floodsub = ["dep:libp2p-floodsub"] gossipsub = ["dep:libp2p-gossipsub", "libp2p-metrics?/gossipsub"] identify = ["dep:libp2p-identify", "libp2p-metrics?/identify"] +json = ["libp2p-request-response?/json"] kad = ["dep:libp2p-kad", "libp2p-metrics?/kad"] macros = ["libp2p-swarm/macros"] mdns = ["dep:libp2p-mdns"]