Skip to content

Comments

Update Rust bindings list and links#28123

Merged
elithrar merged 2 commits intoproductionfrom
opencode/issue25853-20260205214658
Feb 6, 2026
Merged

Update Rust bindings list and links#28123
elithrar merged 2 commits intoproductionfrom
opencode/issue25853-20260205214658

Conversation

@ask-bonk
Copy link
Contributor

@ask-bonk ask-bonk bot commented Feb 5, 2026

Here's a summary of the changes made to src/content/docs/workers/languages/rust/index.mdx:

Fixed stale links (as requested in the issue):

  • Secret: Replaced GitHub commit link (github.com/cloudflare/workers-rs/blob/e15f88...) with https://docs.rs/worker/latest/worker/struct.Secret.html
  • Var: Replaced the same stale GitHub commit link with https://docs.rs/worker/latest/worker/type.Var.html
  • KvStore: Updated from the separate worker-kv crate link to the current worker crate path: https://docs.rs/worker/latest/worker/kv/struct.KvStore.html

Added missing bindings (validated against the Env struct methods in workers-rs v0.7.4):

  • D1Database -- D1 database binding (the primary ask in the issue)
  • Queue -- Queues producer binding
  • Ai -- Workers AI binding
  • Hyperdrive -- Hyperdrive binding
  • AnalyticsEngineDataset -- Analytics Engine binding
  • DynamicDispatcher -- Dynamic Dispatch binding
  • SecretStore -- Secret Store binding
  • RateLimiter -- Rate Limiting binding

All eight additions correspond to methods on the Env struct in the worker crate and link to their respective docs.rs documentation pages and Cloudflare product documentation.

Closes #25853

github run

Co-authored-by: elithrar <elithrar@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @korinne, @WalshyDev, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing, @cloudflare/wrangler, @mattietk

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

@elithrar elithrar enabled auto-merge (squash) February 6, 2026 12:02
@elithrar
Copy link
Collaborator

elithrar commented Feb 6, 2026

/bonk fix the broken link:

Error: 0 [ERROR] ✗ Found 1 invalid link in 1 file.
22:04:50 ▶ workers/languages/rust/
22:04:50 └─ /secret-store/ - invalid link

Error: 0 [ERROR] [starlight-links-validator-integration] An unhandled error occurred while running the "astro:build:done" hook
[AstroUserError] Links validation failed.
Hint:
See the error report above for more informations.

Co-authored-by: elithrar <elithrar@users.noreply.github.com>
@ask-bonk
Copy link
Contributor Author

ask-bonk bot commented Feb 6, 2026

The fix is straightforward: the link /secret-store/ was missing an "s". The correct path is /secrets-store/, which matches the existing docs at src/content/docs/secrets-store/. I also updated the display text from "Secret Store" to "Secrets Store" to match the product name used in the docs.

github run

@elithrar elithrar merged commit afa49dc into production Feb 6, 2026
9 checks passed
@elithrar elithrar deleted the opencode/issue25853-20260205214658 branch February 6, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Cloudflare Rust page with D1 binding and replace stale GitHub commit links

7 participants