cloudflare / cloudflare/workers-rs

[BUG] DOCUMENTATION inconsistencies for KV location

Open
#718 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.7k
Forks
429
Avg merge
20h 28m
Merged PRs (30d)
7

Description

This tutorial shows getting kv from context:
https://developers.cloudflare.com/workers/tutorials/workers-kv-from-rust/

The workers-rs readme also shows context:
https://github.com/cloudflare/workers-rs

The docs show kv lives in environment:
https://docs.rs/worker/latest/worker/struct.Env.html#method.kv

This example code shows something else entirely:
https://github.com/cloudflare/workers-rs/blob/main/examples/kv/src/lib.rs

Running actual tests, env.kv seems to work

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.