diff --git a/Cargo.toml b/Cargo.toml index e746c5752..93ac9659c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,85 +4,86 @@ version = "0.0.1" authors = [] build = "build.rs" - [features] -default = ["all"] -all = [ - "base64", - "basename", - "cat", - "chmod", - "chroot", - "cksum", - "comm", - "cp", - "cut", - "dirname", - "du", - "echo", - "env", - "expand", - "expr", - "factor", - "false", - "fmt", - "fold", - "groups", - "hashsum", - "head", - "hostid", - "hostname", - "id", - "kill", - "link", - "ln", - "logname", - "mkdir", - "mkfifo", - "mv", - "nice", - "nl", - "nohup", - "nproc", - "od", - "paste", - "printenv", - "ptx", - "pwd", - "readlink", - "realpath", - "relpath", - "rm", - "rmdir", - "seq", - "shuf", - "sleep", - "sort", - "split", - "stdbuf", - "sum", - "sync", - "tac", - "tail", - "tee", - "test", - "timeout", - "touch", - "tr", - "true", - "truncate", - "tsort", - "tty", - "uname", - "unexpand", - "uniq", - "unlink", - "uptime", - "users", - "wc", - "whoami", - "yes", +unix = [ + "chroot", + "du", + "groups", + "hostid", + "hostname", + "id", + "kill", + "logname", + "mkfifo", + "mv", + "nice", + "nohup", + "stdbuf", + "timeout", + "touch", + "tty", + "uname", + "unlink", + "uptime", + "users", ] +generic = [ + "base64", + "basename", + "cat", + "chmod", + "cksum", + "comm", + "cp", + "cut", + "dirname", + "echo", + "env", + "expand", + "expr", + "factor", + "false", + "fmt", + "fold", + "hashsum", + "head", + "link", + "ln", + "mkdir", + "nl", + "nproc", + "od", + "paste", + "printenv", + "ptx", + "pwd", + "readlink", + "realpath", + "relpath", + "rm", + "rmdir", + "seq", + "shuf", + "sleep", + "sort", + "split", + "sum", + "sync", + "tac", + "tail", + "tee", + "test", + "tr", + "true", + "truncate", + "tsort", + "unexpand", + "uniq", + "wc", + "whoami", + "yes", +] +default = ["generic", "unix"] [dependencies] uucore = { path="src/uucore" } @@ -178,4 +179,3 @@ tempdir="*" [[bin]] name="uutils" path="src/uutils/uutils.rs" - diff --git a/build.rs b/build.rs index 71ffd8cc1..9ce14b5a5 100644 --- a/build.rs +++ b/build.rs @@ -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());