1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

build: create group features for target systems

This allows a user to create builds with or without the Unix-specific
utilities. Right now the Makefile handles this, but this is needed to
migrate away from make.

To build Unix-specific utilities (default):

cargo build
(or)
cargo build --features unix --no-default-features

To build without the Unix-specific utilities:

cargo build --features generic --no-default-features
This commit is contained in:
Joseph Crail 2015-11-29 17:27:54 -05:00
parent b46050460e
commit a8bb7f4417
2 changed files with 79 additions and 80 deletions

View file

@ -12,8 +12,7 @@ pub fn main() {
if val == "1" && key.starts_with(feature_prefix) {
let krate = key[feature_prefix.len()..].to_lowercase();
match krate.as_ref() {
"default" => continue,
"all" => continue,
"default" | "unix" | "generic" => continue,
_ => {},
}
crates.push(krate.to_string());