diff --git a/Cargo.toml b/Cargo.toml index 6e5ee3705..752439f51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,89 @@ unix = [ "users", "who", ] +# Feature "fuchsia" contains the exclusive list of utilities +# that can be compiled and run on Fuchsia. Should be built +# with --no-default-features when selecting this feature. +# TODO: merge with "generic"/"unix" to avoid duplication +# once we support all utilities in that feature. +fuchsia = [ + # From unix + "arch", + "chgrp", + "chmod", + "chown", + "du", + "groups", + "hostid", + "install", + "logname", + "mkfifo", + "mknod", + "nice", + "pathchk", + "stdbuf", + "touch", + "tty", + "uname", + "unlink", + + # From generic + "base32", + "base64", + "basename", + "cat", + "cksum", + "comm", + "cp", + "cut", + "dircolors", + "dirname", + "echo", + "env", + "expand", + "expr", + "factor", + "false", + "fmt", + "fold", + "hashsum", + "head", + "link", + "ln", + "mkdir", + "mv", + "nl", + "od", + "paste", + "printenv", + "printf", + "pwd", + "readlink", + "realpath", + "relpath", + "rm", + "rmdir", + "seq", + "shred", + "shuf", + "sleep", + "sort", + "split", + "sum", + "sync", + "tac", + "tail", + "tee", + "test", + "tr", + "true", + "truncate", + "tsort", + "unexpand", + "wc", + "whoami", + "yes", +] generic = [ "base32", "base64", diff --git a/build.rs b/build.rs index f06e751bf..1548858b4 100644 --- a/build.rs +++ b/build.rs @@ -12,7 +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" | "unix" | "generic" | "nightly" | "test_unimplemented" => continue, + "default" | "unix" | "fuchsia" | "generic" | "nightly" | "test_unimplemented" => continue, _ => {}, } crates.push(krate.to_string());