From 74e39a927c63e789fec1c8f1817812920079229d Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 5 Dec 2023 14:21:46 +0100 Subject: feat(unstable): kv.watch() (#21147) This commit adds support for a new `kv.watch()` method that allows watching for changes to a key-value pair. This is useful for cases where you want to be notified when a key-value pair changes, but don't want to have to poll for changes. --------- Co-authored-by: losfair --- Cargo.lock | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 269bf912d..4a645ac0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1707,13 +1707,14 @@ dependencies = [ [[package]] name = "denokv_proto" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd501a6b10a8b7fe7e605cafe4aad1d266ed0791b788dab78889df14b1a23e5f" +checksum = "98a79f7e98bfd3c148ce782c27c1494e77c3c94ab87c9e7e86e901cbc1643449" dependencies = [ "anyhow", "async-trait", "chrono", + "futures", "num-bigint", "prost", "prost-build", @@ -1723,15 +1724,17 @@ dependencies = [ [[package]] name = "denokv_remote" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d94fd3da7d1fa9ef1515bf3bc5b2fe75389edb3f15e9445e345679fda44987c" +checksum = "518e181eb14f1a3b8fc423e48de431048249780fb0815d81e8139faf347c3269" dependencies = [ "anyhow", + "async-stream", "async-trait", "bytes", "chrono", "denokv_proto", + "futures", "log", "prost", "rand", @@ -1739,21 +1742,24 @@ dependencies = [ "serde", "serde_json", "tokio", + "tokio-util", "url", "uuid", ] [[package]] name = "denokv_sqlite" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2d2ab5fe45079dc41ab76549bb9fc3aeb9be4e54fddbdfb16a779db4a0b38df" +checksum = "90af93f2ab8eec43fea9f8931fa99d38e73fa0af60aba0fae79de3fb87a0ed06" dependencies = [ "anyhow", + "async-stream", "async-trait", "chrono", "denokv_proto", "futures", + "hex", "log", "num-bigint", "rand", -- cgit v1.2.3