Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Rust bindings for Cloudflare KV / Cache APIs #1377

Closed
bluk opened this issue Jun 10, 2020 · 6 comments
Closed

Rust bindings for Cloudflare KV / Cache APIs #1377

bluk opened this issue Jun 10, 2020 · 6 comments

Comments

@bluk
Copy link

bluk commented Jun 10, 2020

馃挕 Feature request

An easy way to use the Cloudflare Worker runtime specific APIs (e.g. KV and Cache APIs) from Rust.

Overview and problem statement

While Rust web-sys and js-sys crates exist which works for most of the "Worker runtime" environment, there are a few Cloudflare specific APIs which do not have equivalent bindings.

It would be helpful if either Cloudflare or the community could provide an easy to use crate.

@ispivey
Copy link
Contributor

ispivey commented Jun 11, 2020

This is a good idea! I can't promise when the Workers team can prioritize this, but we've talked about it internally, and would love to see community contributions as well.

@ispivey ispivey added the design label Jun 11, 2020
@stale
Copy link

stale bot commented Aug 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 11, 2020
@joepio
Copy link

joepio commented Oct 14, 2020

Since the needs design tag is here, perhaps these can offer inspiration for Key/Value store API design:

  • sled, a powerful embedded Key/Value store that mimics BTreeMap<[u8], [u8]>.
  • kv - powered by sled, but easier to use.
  • cask - another K/V store

@ffimnsr
Copy link

ffimnsr commented Nov 8, 2020

Is there any update for this? currently there are no examples of using KV on rust-wasm, even just API so we can create a crate for it.

@koeninger
Copy link
Contributor

@ffimnsr if you're looking for examples of calling the JS KV api from rust e.g. https://github.com/koeninger/rust-kv-example/blob/master/src/lib.rs

@Electroid
Copy link
Contributor

Going to close this, while it's something we might do, it's not really related to wrangler.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants