用 Rust 重寫的 coreutils 和 findutils 變體的新版本

uutils coreutils 0.0.18 工具包已發布,其中正在開發用 Rust 語言重寫的 GNU Coreutils 套件的類似版本。 Coreutils 附帶了一百多個實用程序,包括 sort、cat、chmod、chown、chroot、cp、date、dd、echo、hostname、id、ln 和 ls。 該專案的目標是創建 Coreutils 的跨平台替代實現,能夠在 Windows、Redox 和 Fuchsia 平台等上運行。 與 GNU Coreutils 不同,Rust 實作是在寬鬆的 MIT 授權下分發的,而不是在 GPL copyleft 授權下分發的。

主要變化:

  • 改進了與 GNU Coreutils 基準測試套件的兼容性,該套件通過了 340 項測試,未通過 210 項測試,並跳過了 50 項測試。 參考版本是 GNU Coreutils 9.2。
    用 Rust 重寫的 coreutils 和 findutils 變體的新版本
  • 擴展了功能,改進了相容性,並為實用程式cksum、chmod、chroot、comm、cp、cut、date、dd、du、expand、env、factor、hashsum、install、ln、ls、mktemp、mv、nice 、nproc 新增了缺少的選項、od、ptx、pwd、rm、shred、睡眠、stdbuf、stty、tail、觸摸、逾時、tr、uname、uniq、utmpx、正常運行時間、wc。
  • ln、cp 和 mv 實用程式中的互動模式 (-i) 已改進。
  • 改進了 yes、tee 和超時實用程式中的訊號處理。
  • 為了定義終端,我們切換到 is_terminal 套件而不是 atty。

同時,發布了 uutils findutils 0.4.0 套件,其中包含 GNU Findutils 集中實用程式(find、locate、updatedb 和 xargs)的 Rust 實作。 在新版本中:

  • 新增了對 GNU 相容 printf 函數的支援。
  • xargs 實用程式已實作。
  • 新增了對正規表示式、POSIX 遮罩和“{}”替換的支援。
  • find 實用程式加入了對選項「-print0」、「-lname」、「-ilname」、「-empty」、「-xdev」、「-and」、「-P」、「—」、「-」的支援quit”、“-mount”、“-inum”和“-links”。

來源: opennet.ru

添加評論