uutils

coreutils

GNU coreutils 的跨平台 Rust 重写实现。

0.12.0
发布于
2026年9月17日
24,219
星标
448,371
下载
同步于
15 天前
rust

最新版本

0.12.02026年9月17日 14:31
下载慢?可在上方随时切换镜像源

项目说明

项目概述

uutils coreutils 是 GNU coreutils 在 Rust 中的跨平台重写实现。目标是成为 GNU utils 的替代品。

主要功能

  • 跨平台支持:Linux、macOS、BSD、Windows、WASI 等
  • 匹配 GNU 的输出(stdout 和错误代码)
  • 更好的错误信息
  • 全面的国际化支持(UTF-8)
  • 改进的性能
  • 支持扩展功能(如 --progress)

适用人群

  • 需要跨平台 coreutils 的开发者
  • 希望在不同系统间无缝传输脚本的用户
  • Rust 语言爱好者

快速上手

  1. 克隆仓库:git clone https://github.com/uutils/coreutils
  2. 进入目录:cd coreutils
  3. 构建:cargo build --release
  4. 优化体积:cargo build --profile=release-small

核心优势

  • 跨平台统一命令行工具体验
  • 内存安全的 Rust 实现
  • 与 GNU coreutils 高度兼容
  • Ubuntu 25.10 起默认预装

系统要求

  • 操作系统:Linux、macOS、BSD、Windows、WASI
  • 支持架构:x86_64、arm64
  • 额外依赖:Rust、Cargo

注意事项

  • 部分选项可能缺失或行为与 GNU 不同
  • 最新二进制可从 latest-commit 获取

历史版本

排序