[Feature] Support for Images binding
Is there an existing issue for this?
- [x] I have searched the existing issues
Description
workers-rs would be improved if support for an Images binding could be added as per the documentation here: https://developers.cloudflare.com/images/transform-images/bindings/
[images] binding = "IMAGES" # i.e. available in your Worker on env.IMAGES
Is anyone currently working on this or are there plans to add this binding?
An obvious use case is to have the ability via a worker to tranform an image before privately put the object into R2.
Workers-rs is a thin wrapper over the JS/TS version.
So if its already supported on the JS/TS version you are mostly a thin wrapper away.
It shouldn't be hard for you to do it by yourself, its the rule of thumb I use for myself.
I'm getting the same issue. The binding is not working and I get:
▲ [WARNING] Processing wrangler.toml configuration:
- Unexpected fields found in top-level field: "images"
Why was this closed? It doesn't look like workers-rs supports the images binding yet.