Rust profile与-opt-level 调优
Rust 编译优化 消除运行时开销 [profile.release] strip = true strip 是 Cargo.toml 中 [profile.release]部分的配置项,仅影响 发布版本(即cargo build --release)。 - strip = true:编译后自动移除 二进制文件 中的符号表(debug信息),使文件体积更小,但无法用于调试。 - strip = false(默认值):保留符号表,便于调试,但会增加文件大小 codegen-units = 1 codegen-units 设置控制 -C codegen-units 标志,该标志控制 crate 将被分割成多少个“代码生成单元” 更多的代码生成单元允许更多 crate 部分并行处理,可能会缩短编译时间,可能会生成较慢的代码
cargo Release Profiles 自定义构建配置
cargo Release Profiles 自定义构建配置 开发时 关注快速编译与调试信息 而发布时则更看重运行效率
Cargo Cargo.toml
Cargo Cargo.toml 称为清单( manifest ) 文件格式是 TOML
cargo config.toml 国内源
cargo config.toml 国内源 Cargo 换源配置 国内 Rust 的 Cargo 包管理工具 由于网络限制,访问官方的 crates.io 慢 通过配置国内镜像源 显著提升依赖下载和构建速度
Zip rust
Zip implementation in Rust https://github.com/zip-rs/zip2
Meilisearch 搜索引擎
Meilisearch 是搜索引擎,闪电般快速的 RESTful 搜索 API、容错处理、全面的语言支持等功能 https://github.com/meilisearch/meilisearch
CC Switch
CC Switch 跨平台桌面应用 统一管理 Claude Code、Claude Desktop、Codex、Gemini CLI、Grok Build、OpenCode、OpenClaw、Hermes、Pi 和 MiniMax Code 共 10 个工具的配置 https://github.com/farion1231/cc-switch https://ccswitch.io/zh/
macmon monitor
Real-time system monitor for Apple Silicon Macs (M1–M5). No sudo. TUI, JSON/Prometheus metrics server, and Rust library.
Toml rust文件解析库
TOML 文件解析库,配置管理 用配置文件让程序灵活 方便 适应不同的使用情况、运行环境等 toml解析器协助程序的配置管理 TOML 简单 符合工程学 可读的配置格式;Rust 的包管理器cargo就使用 TOML 格式
Tempfile rust跨平台临时文件库
Tempfile 是 Rust 语言编写的安全、跨平台的临时文件库。创建临时文件,用户安全打开对同一临时文件的多个独立引用,在消费者/生产者模式中特别有用,实现这一功能的安全性通常较为复杂 A secure, cross-platform, temporary file library for Rust. In addition to creating temporary files, this library also allows users to securely open multiple independent references to the same temporary file (useful for consumer/producer patterns and surprisingly difficult to implement securely)