mirror of
https://github.com/uutils/coreutils
synced 2024-12-21 02:23:14 +00:00
b90d253584
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.
17 lines
211 B
TOML
17 lines
211 B
TOML
[package]
|
|
name = "uname"
|
|
version = "0.0.1"
|
|
authors = []
|
|
|
|
[lib]
|
|
name = "uu_uname"
|
|
path = "uname.rs"
|
|
|
|
[dependencies]
|
|
getopts = "*"
|
|
libc = "*"
|
|
uucore = { path="../uucore" }
|
|
|
|
[[bin]]
|
|
name = "uname"
|
|
path = "main.rs"
|