cloudflare / workers-rs

Write Cloudflare Workers in 100% Rust via WebAssembly
Apache License 2.0
2.6k stars 282 forks source link

BREAKING: Implement more of the R2 API #627

Open fisherdarling opened 2 months ago

fisherdarling commented 2 months ago

This PR adds two missing parts of the R2 API:

This API is successfully being used to implement a compare-and-swap (CAS) primitive for an internal project. We ended up not needing the list changes, but I thought it'd be useful nonetheless.

Tasks: