Appearance
Rust 前端框架
Operating Systems
Editor
GUI
Slint Slint is a declarative(陈述) GUI toolkit to build native user interfaces for applications that are written in Rust, C++, or JavaScript.
Iced A cross-platform GUI library for Rust, inspired by Elm
Xilem An experimental Rust native UI framework
Vizia A declarative GUI library written in Rust
proxy
nushell
https://www.nushell.sh/documentation.html 采用 shell 的 Unix 哲学,其中管道将简单的命令连接在一起,并将其引入现代风格的开发。
语言
servo
- servo/servo 是一种现代的、高性能的浏览器引擎,为应用程序和嵌入式使用而开发。
终端
命令行
- Clap 用于构建命令行接口,简化了命令行参数的解析和处理。
序列化
- serde 一个序列化和反序列化的框架。Serde极其高效,可以处理各种数据格式,如JSON、YAML和Bincode。
多线程
- Rayon 一个数据并行处理库,用于简化多线程编程。
并发
- Crossbeam 提供了一系列用于并发编程的工具,如通道、原子操作、锁等。
异步
Tokio 一个异步运行时,用于编写高性能的网络应用。它提供了事件驱动的非阻塞 I/O 模型。
Async-std 提供了类似于标准库的异步版本,用于构建异步应用。
Wasm
- https://github.com/yewstack/yew Rust / Wasm framework for building client web apps
- trunk Build, bundle & ship your Rust WASM application to the web.
web 应用
Leptos Leptos是一个基于“响应式” ui 概念的前沿全栈 web 框架。这意味着只要底层数据发生变化,UI 就会自动更新。
[Rocket] 一个用于构建 web 应用的框架,以简易性和速度著称。提供了宏来简化路由和请求处理。
ORM
rewriting everything in Rust
I spent six months rewriting everything in Rust
- Clap
- Bevy
- wgpu
- Axum
- Tower
- Embassy
- Rayon
- nom
- Cargo Lambda
- napi-rs
- neon
- Polars
- PlanetScale
- serde
- sqlx
- Trunk
- Yew
- Leptos
- Rive
- Mux
rust & frontend
node
编译
- https://github.com/swc-project/swc对标 ts/babel
前端工具
rust-for-fe Rust是未来前端基础设施
oxc-project/oxc A collection of JavaScript tools written in Rust.
https://github.com/volta-cli/volta 对标 nvm+npm
https://github.com/egoist/dum An npm scripts runner written in Rust.
source-map
测试
- https://github.com/DrSensor/rs-jest一个用于跑 Rust 单元测试的 jest transformer,安装之后只需要简单配置一下 jest.config.js 即可。很老,可能需要更新
打包
swcpack: SWC 的 bundle 工具,类似于 Webpack
Deno: JS/TS 的 runtime,但是也提供诸如 linter, code formatter, docs generator, bundle 这些功能, 当然基于 SWC
Rome: Babel 的作者 Sebastian 创建,目前已经在进行 Rust 重写,基于 rslint_parser(https://github.com/rslint/rslint),项目代码%EF%BC%8C%E9%A1%B9%E7%9B%AE%E4%BB%A3%E7%A0%81)https://github.com/rome/tools
dprint: 基于 SWC 构建,提供类似 Prettier 的功能,但是比 Prettier 快 30 倍
Parcel 2: 基于 SWC,打包性能提升 10 倍
https://github.com/HerringtonDarkholme/vue-compiler对标 vue-template-compiler
https://github.com/rslint/rslint对标 eslint
https://github.com/yisibl/resvg-jsA high-performance SVG renderer, powered by Rust based resvg and napi-rs.
https://napi.rs/NAPI-RS: a minimal library for building pre-compiled Node.js addons in Rust
https://neon-bindings.com/Neon: Electrify your Node with the power of Rust
https://github.com/tauri-apps/tauriTauri: Electron alternative Tauri written in Rust
https://github.com/boa-dev/boaBoa (JS engine in Rust)
https://github.com/image-rs/image-pngPNG decoding and encoding library in pure Rust
https://github.com/gfx-rs/wgpuSafe and portable GPU abstraction in Rust, implementing WebGPU API.
https://github.com/rust-analyzer/rust-analyzerA Rust compiler front-end for IDEs
https://github.com/38/plottersPlotters is drawing library designed for rendering figures, plots, and charts, in pure rust. Plotters supports various types of back-ends, including bitmap, vector graph, piston window, GTK/Cairo and WebAssembly.
https://github.com/djc/askamaType-safe, compiled Jinja-like templates for Rust
https://github.com/facebook/relay/tree/v13.0.0-rc.1/compilerrelay compiler was written in rust
https://github.com/devongovett/tree-sitter-highlightA syntax highlighter for Node powered by Tree Sitter. Written in Rust.
https://github.com/g-plane/browserslist-rsRust-ported Browserslist.
json
UNIX style tool to pretty print json
HTML
- https://github.com/leizongmin/htmlstream-rust Lightweight HTML parser
css
对标 postcss
swc-css: SWC 的 CSS parser,类似 PostCSS
parcel-bundler/lightningcss An extremely fast CSS parser, transformer, bundler, and minifier written in Rust. (github.com)
发布
- shuttle 无需编写任何基础设施文件即可构建和发布后端。
与其他语言
跨平台
安装
- Cargo Binstall 提供了一种低复杂度的机制来安装 Rust 二进制文件,作为从源代码构建(通过 Cargo install )或手动下载包的替代方案。
交叉编译
现在有了更加方便的方法,那就是 cargo-zigbuid。 Zig 是一种通用编程语言和工具链,用于维护健壮、最佳和可重用的软件,而交叉编译是 Zig 的一个卖点。