Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

V0.0.22

@kflansburg just out of curiosity, are there any more changes you want to have merged before cutting a new release?

D1PreparedStatement API

the conversion from D1Type -> JsValue is done once per item per row, which means that every time you call bind_refs, all the D1Types have to be converted. Say we have 4 things we want to bind, and 2 are static, this means that every time we are passing all 4 to js and back. If we're clever with our iterator and are able to use jsvalue, we can instead always return the same 2 references to the static jsvalues and and only convert the 2 dynamic ones every bind_refs...

How to send `FormData` via `Fetch`? I

How to send FormData via Fetch? I don't see Into<JsValue> implementation on the FormData struct.

Yeah had a few problems with the smart

Yeah had a few problems with the smart pointers a while ago as well. But I'll give it another go. My problem right now though is that I can't call self from within the event handler.

GitHub - rasviitanen/rustysignal: Signal...

Hey guys trying to build a Signalling Server with Rust based on this repo: https://github.com/rasviitanen/rustysignal/tree/master Facing some issues when accounting for worker-rs instead. ...

Does anyone know of any chat like

Does anyone know of any chat-like workers-rs example for websockets & durable objects? I'm trying to figure out the communication between different sockets and an example would help a lot 🙂 The only examples I've found are trivial echo servers

I ve noticed that a panicking Durable

I've noticed that a panicking Durable Object causes the Worker that's calling it to just hang indefinitely. I'm guessing that the DO just aborts and somehow the socket connection isn't even getting cleanly shut down or something, so the worker doesn't even know that anything is wrong until it times out. Is there a way to change this behavior?

Modifying Request Host

👋 heyo I'm trying to create a simple worker that takes a request and replaces the host. I have a basic worker running but i want it to be able to pass through the body, all the headers and anything else custom in the original request (e.g. the ip)....

So if you were me a one man team

So if you were me a one man team developing a saas that’s using cloudflare workers and durable objects. I’m building a restaurant saas and have so many different solutions i plan to offer. I’m currently building the api to serve the client react native app in typescript cf workers and durables. Should I put in the backlog that I need to rebuild that using rust in cf workers and durables? What are the drawbacks of rust being used in cf workers? What are the missing features that forced u to switc...

Feel free to take a look at an example

Feel free to take a look at an example which I wrote a few weeks ago: https://github.com/Alex1607/Workers-D1-link-shortener-demo It makes use of the alpha d1 implementation of FlareLine instead of KV but I think it might be a good starting point for you...

Running into an issue bringing wasmedge

Running into an issue bringing wasmedge_quickjs into a worker, hoping someone with more rust experience with workers can help!

I got the parts I need working for now

I got the parts I need working for now. But the decision is, if we find more roadblocks, we'll be moving from CloudFlare and not Rust.

anyone have this error when running

anyone have this error when running wrangler dev -vs 2022 -wrangler 2.0.28 -workers 0.0.11 ...