3 个仓库
Tools and libraries for building web user interfaces using the Rust programming language.
Distinguishing note: No candidate covers the general domain of using Rust for frontend UI development.
Explore 3 awesome GitHub repositories matching web development · Rust Frontend Frameworks. Refine with filters or upvote what's useful.
wasm-bindgen 是一个绑定生成器和互操作层,旨在映射 WebAssembly 和 JavaScript 边界之间的数据类型和函数。它充当外部函数接口,合成必要的样板代码以实现 Rust 和浏览器运行时之间的双向通信。 该项目生成胶水代码和包装器,自动化复杂类型的转换,允许将 Rust 函数导出为 JavaScript 模块,并将浏览器 API 导入到 Rust 中。它使用过程宏来定义这些接口,并根据 Rust 类型定义合成绑定。 该系统通过线性内存指针传递来管理内存,并使用 JavaScript 管理的内存句柄处理资源交换。它依赖于与 C ABI 兼容的调用约定,在模块和宿主之间传递原始整数和浮点数。
Facilitates building web-based user interfaces and application logic using Rust.
Trunk 是一个构建工具和开发服务器,用于将 Rust 代码编译为 WebAssembly 并打包以供浏览器部署。它作为一个 Web 打包器,将 WebAssembly 模块、JavaScript 和静态文件组合成可部署的 Web 应用程序。 该工具提供了一个利用 HTTP 和 WebSocket 代理的本地开发服务器,以实现快速迭代。该环境包括一个文件系统监视器,当源文件被修改时,它会触发自动重建和浏览器重新加载。 该流水线处理将 Rust 源代码转换为 WebAssembly 二进制文件的过程,并生成必要的 JavaScript 胶水代码来实例化模块。它还通过根据源 HTML 文件中找到的引用提取依赖项和静态文件来执行资产打包。
Prepares and packages Rust-based web applications for hosting on production web servers.
Trunk is a WebAssembly build tool and orchestrator designed to automate the process of transforming Rust source code into deployable web applications. It serves as a frontend bundler that packages WebAssembly binaries along with HTML and static assets for browser deployment. The system utilizes an HTML-driven build orchestration model, using the index HTML file as the primary configuration source to determine entry points and dependencies. It integrates with the Rust compiler and associated toolchains to transform code into optimized binaries and glue code. The tool provides a development en
Enables the creation of interactive web user interfaces using Rust for improved performance and type safety.