Re:Rust Is the Future of JavaScript Infrastructure
by dceddia on Thursday November 11, 2021 @03:01PM
(#29192438)
I've been using NAPI-RS to bridge from Electron <-> Rust and it's been nice - https://napi.rs/ I believe SWC uses it behind the scenes.
They just put out an alpha release that makes it way more ergonomic to write Rust functions that interop with JS, too. There's a small example of it in the README: https://github.com/napi-rs/napi-rs#taste
NAPI isn't as well-known in the JS-to-Rust bindings world (Neon is the more well-known library, https://neon-bindings.com/) but it seems to be gaining steam.
Re:Rust Is the Future of JavaScript Infrastructure
by leerob on Thursday November 11, 2021 @03:05PM
(#29192475)
Ah yes, how could I forget! NAPI-RS is very, very slick.
Re:Rust Is the Future of JavaScript Infrastructure
by cjpearson on Thursday November 11, 2021 @03:07PM
(#29192506)
Volta is also written in Rust. I've only used it for managing Node and npm versions, but it can do more than that and describes itself as a "tool manager" rather than a node version manager.
Re:Rust Is the Future of JavaScript Infrastructure
by timClicks on Thursday November 11, 2021 @04:21PM
(#29193355)
I was interested to see that bun (https://bun.sh) is being created in Zig. "bun is like postcss, babel, node & webpack in one 100x faster tool for building modern web frontends."
Re:Rust Is the Future of JavaScript Infrastructure
by leerob on Thursday November 11, 2021 @03:23PM
(#29192681)
Another one: Electron alternative Tauri written in Rust – https://news.ycombinator.com/item?id=26194990
- Boa (JS engine in Rust) – https://github.com/boa-dev/boa
- RSLint (JS/TS linter in Rust) – https://github.com/rslint/rslint
- Node version manager in Rust – https://github.com/Schniz/fnm
If you know of any other popular ones, let me know. I'm keeping a list :)