1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 01:31:08 +00:00
uutils-coreutils/src/split
Joseph Crail b90d253584 Refactor and simplify build for utilities.
For coreutils, there are two build artifacts:

  1. multicall executable (each utility is a separate static library)
  2. individual utilities (still separate library with main wrapper)

To avoid namespace collision, each utility crate is defined as
"uu_{CMD}". The end user only sees the original utility name. This
simplifies build.rs.

Also, the thin wrapper for the main() function is no longer contained in
the crate. It has been separated into a dedicated file. This was
necessary to work around Cargo's need for the crate name attribute to
match the name in the respective Cargo.toml.
2015-12-07 21:56:45 -05:00
..
Cargo.toml Refactor and simplify build for utilities. 2015-12-07 21:56:45 -05:00
main.rs Refactor and simplify build for utilities. 2015-12-07 21:56:45 -05:00
README.md Added verbose for split - prints created file name 2015-01-04 23:33:32 +01:00
split.rs Refactor and simplify build for utilities. 2015-12-07 21:56:45 -05:00

Rudimentary "split" Implementation

Missing Features

Flags

  • --verbose - created file printing is implemented, don't know if there is anything else

Possible Optimizations

  • Use slice ([u8]) directly as the control.current_line.