<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Rust - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/rust/</link><description>Rust - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Tue, 21 Jul 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/rust/" rel="self" type="application/rss+xml"/><item><title>Vite 入门</title><link>https://rd163.visword.com/posts/get-started-with-vite/</link><pubDate>Tue, 21 Jul 2026 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/get-started-with-vite/</guid><description><![CDATA[<blockquote>
  <p>Next generation frontend tooling. It&rsquo;s fast!</p>

</blockquote><ul>
<li><a href="https://github.com/vitejs/vite" target="_blank" rel="noopener noreferrer">Vite GitHub 仓库</a></li>
</ul>
<h2 id="为什么快" class="headerLink">
    <a href="#%e4%b8%ba%e4%bb%80%e4%b9%88%e5%bf%ab" class="header-mark"></a>为什么快</h2><ul>
<li>Vite 在启动时将应用中的模块区分为<strong>依赖</strong>(dependencies)与<strong>源码</strong>(source code)两类，从而改进了开发服务器的启动时间。依赖多为第三方库，变动不频繁，Vite 使用 esbuild 对其进行预打包;源码则按需通过原生 ESM 提供给浏览器。</li>
<li>在 Vite 中，HMR(热模块替换)是在原生 ESM 之上执行的。编辑某个文件时，Vite 只需要精确地使已编辑模块与其最近的 HMR 边界之间的链失活（大多数时候只是模块本身）,因此无论应用规模如何，HMR 始终能保持快速更新。</li>
</ul>
<h2 id="快速开始" class="headerLink">
    <a href="#%e5%bf%ab%e9%80%9f%e5%bc%80%e5%a7%8b" class="header-mark"></a>快速开始</h2><p>安装:</p>]]></description></item><item><title>Rust 实现的命令行工具</title><link>https://rd163.visword.com/posts/cmd-by-rust/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/cmd-by-rust/</guid><description><![CDATA[<p>近年来,Rust 在命令行工具领域出现了一大批高质量的项目。许多经典的 Unix 命令(<code>cat</code>、<code>ls</code>、<code>grep</code>、<code>find</code>、<code>cd</code> 等)都有了 Rust 重写的现代版本,它们在保留原工具习惯的同时,提供了更好的性能、更友好的输出和更丰富的功能。</p>]]></description></item><item><title>Typst</title><link>https://rd163.visword.com/posts/rust-typst/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/rust-typst/</guid><description>&lt;p>&lt;a href="https://github.com/typst/typst" target="_blank" rel="noopener noreferrer">Typst&lt;/a> 是一款专门为排版而生的新生代工具，主体用 Rust 编写，采用 Apache-2.0 协议。它完全摒弃了传统排版系统的历史包袱，着眼于现代化的功能与设计，成功克服了 LaTeX 等老牌方案的一些固有的不足。&lt;/p></description></item><item><title>使用 Rust 创建 Web 应用程序</title><link>https://rd163.visword.com/posts/web-app-with-rust/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/web-app-with-rust/</guid><description><![CDATA[<p>Rust 凭借零成本抽象、强类型系统和出色的 WebAssembly(Wasm)编译目标，正逐步成为前端开发的一个新选项。借助 <code>wasm-bindgen</code> 与 <code>wasm-pack</code> 等工具链，开发者可以将 Rust 代码编译为 Wasm 模块在浏览器中运行，从而在保留类型安全与高性能的同时绕开传统 JavaScript 生态的部分痛点。</p>]]></description></item><item><title>用 Rust 实现的应用有哪些？</title><link>https://rd163.visword.com/posts/rust-apps/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/rust-apps/</guid><description>&lt;p>Rust 是一门强调**内存安全（memory safety）&lt;strong>与&lt;/strong>零成本抽象（zero-cost abstractions）**的系统级编程语言，同时具备 C/C++ 量级的运行性能与现代语言的人体工程学。正因为它既快又安全，越来越多追求性能、对延迟敏感或者需要在底层直接控制系统资源的工具，开始把 Rust 作为首选语言。本文按使用场景，盘点一批在生产环境中真实存在、且较有代表性的 Rust 实现的开源应用，方便选型与学习参考。&lt;/p></description></item></channel></rss>