How uutils/coreutils works
uutils coreutils is a cross-platform Rust reimplementation of GNU coreutils. Its primary workflow is invoking a utility with arguments and input, then producing command output and an exit status; the repository also supports a multicall coreutils executable. The map groups the many commands by domain and shows shared runtime services. Utility dispatch details and most command implementations were not excerpted, so the command groups are broad, and their connections to the multicall entry point are marked unverified.
Main entry points: coreutils.rs Coreutils entry · lib.rs Utility runtime · locale.rs Localization · features Shared features
Components 17
Runtime and shared services
- Coreutils entry
src/bin/coreutils.rs - Utility runtime
src/uucore/src/lib/lib.rs - Localization
src/uucore/src/lib/mods/locale.rs - Shared features
src/uucore/src/lib/features
File operations
- File viewing
src/uu/cat - File management
src/uu/cp - File metadata
src/uu/stat - Filesystem usage
src/uu/df
Text and data utilities
- Text transformation
src/uu/tr - Text selection
src/uu/cut - Text counting
src/uu/wc - Text sorting
src/uu/sort - Checksums
src/uu/cksum
System utilities
- Environment commands
src/uu/env - Process control
src/uu/timeout - Identity and host
src/uu/id
Other components
- Shell user
Connections 16
- Shell user → Coreutils entry: invokes
- Coreutils entry → File viewing: dispatches
- Coreutils entry → File management: dispatches
- Coreutils entry → File metadata: dispatches
- Coreutils entry → Filesystem usage: dispatches
- Coreutils entry → Text transformation: dispatches
- Coreutils entry → Text selection: dispatches
- Coreutils entry → Text counting: dispatches
- Coreutils entry → Text sorting: dispatches
- Coreutils entry → Checksums: dispatches
- Coreutils entry → Environment commands: dispatches
- Coreutils entry → Process control: dispatches
- Coreutils entry → Identity and host: dispatches
- Coreutils entry → Utility runtime: uses
- Utility runtime → Localization: initializes
- Utility runtime → Shared features: exposes
src/uucore/src/lib/lib.rs