跳到正文
DEV Community· Batu Saribay·· 5 小時前AI 評分36

我用 Rust 開發了八款命令列工具

I built eight CLI tools in Rust.

AI 導讀

作者用 Rust 開發了八款命令列工具,涵蓋離線字典、IMAP/SMTP 電郵用戶端、新聞閲讀器、網頁搜尋工具等。八款工具均為單一二進位檔,以純文字輸出,採用 MIT 授權;作者完成檢查後,clippy 無問題,共有 157 項測試,並修正跳脱序列注入問題,為新聞閲讀器加入 DNS 層級的 SSRF 防護。

正文

Batu Saribay

I built eight CLI tools in Rust: an offline dictionary, an IMAP/SMTP email client, a news reader, a web search tool, a Wikipedia/wikiHow reader, an OverTheWire wargames browser, a ray-traced Saturn screensaver, and a DeepSeek web-chat front end. Every one is a single binary that prints plain text. No TUI, no telemetry, no API key where a browser session will do, and nothing left running in the background.

They follow the same rules: one job per binary, stdin and stdout, JSON when a script needs it, the OS keyring for passwords, and a cache only when it saves a request. I just audited all eight: clippy clean, 157 tests, escape-sequence injection fixed, DNS-level SSRF protection in the news reader. All MIT licensed, all at github.com/batusaribay.

來源:DEV Community · dev.to