by alberth · 5y ago · 0 comments
Or is this allowing actual Rust code to run natively on the Cloudflare Workers environment?
I ask because there is a significant difference in performance between native Rust and Web ASM.
EDIT: I found this benchmark [0]. It appears you can run Rust 3 different ways. 1. Natively (fastest), 2. Node with Rust Bindings (2x slower than native), or 3. wasm (8x slower than native).
I wonder if this announcement is Cloudflare supporting the #2 configuration above (Node with Rust Bindings).
[0] https://github.com/PSeitz/wana_kana_rust/tree/master/bench_c...
See https://developers.cloudflare.com/workers/learning/how-worke...
Edit: "Native" does seem misleading in the title. "Streamlined Rust Support on Cloudflare Workers" would have been more straightforward.
> Introducing the worker crate, available on GitHub and crates.io, which makes Rust developers feel right at home on the Workers platform by running code inside the V8 WebAssembly engine.
It seems like this is still WASM. I wonder if this is "Node with Rust bindings" as my EDIT comment alludes too.