mirror of
https://github.com/uutils/coreutils.git
synced 2025-07-07 21:45:01 +00:00
create redox feature as subset of generic
This commit is contained in:
parent
e0bfbc3c23
commit
cd1f0690d7
2 changed files with 27 additions and 17 deletions
42
Cargo.toml
42
Cargo.toml
|
@ -66,10 +66,35 @@ fuchsia = [
|
|||
"generic"
|
||||
]
|
||||
generic = [
|
||||
"cat",
|
||||
"hashsum",
|
||||
"more",
|
||||
"ln",
|
||||
"ls",
|
||||
"mkdir",
|
||||
"mktemp",
|
||||
"nl",
|
||||
"nproc",
|
||||
"ptx",
|
||||
"shred",
|
||||
"sort",
|
||||
"sync",
|
||||
"tail",
|
||||
"test",
|
||||
"whoami",
|
||||
"redox"
|
||||
]
|
||||
# Feature "redox" contains the exclusive list of utilities
|
||||
# that can be compiled and run on redox. Should be built
|
||||
# with --no-default-features when selecting this feature.
|
||||
# TODO: merge with "generic" to avoid duplication once we support
|
||||
# all utilities in that feature.
|
||||
redox = [
|
||||
|
||||
# And maybe all generic utilities
|
||||
"base32",
|
||||
"base64",
|
||||
"basename",
|
||||
"cat",
|
||||
"cksum",
|
||||
"comm",
|
||||
"cp",
|
||||
|
@ -84,22 +109,13 @@ generic = [
|
|||
"false",
|
||||
"fmt",
|
||||
"fold",
|
||||
"hashsum",
|
||||
"head",
|
||||
"link",
|
||||
"ln",
|
||||
"ls",
|
||||
"mkdir",
|
||||
"mktemp",
|
||||
"more",
|
||||
"mv",
|
||||
"nl",
|
||||
"nproc",
|
||||
"od",
|
||||
"paste",
|
||||
"printenv",
|
||||
"printf",
|
||||
"ptx",
|
||||
"pwd",
|
||||
"readlink",
|
||||
"realpath",
|
||||
|
@ -107,17 +123,12 @@ generic = [
|
|||
"rm",
|
||||
"rmdir",
|
||||
"seq",
|
||||
"shred",
|
||||
"shuf",
|
||||
"sleep",
|
||||
"sort",
|
||||
"split",
|
||||
"sum",
|
||||
"sync",
|
||||
"tac",
|
||||
"tail",
|
||||
"tee",
|
||||
"test",
|
||||
"tr",
|
||||
"true",
|
||||
"truncate",
|
||||
|
@ -125,7 +136,6 @@ generic = [
|
|||
"unexpand",
|
||||
"uniq",
|
||||
"wc",
|
||||
"whoami",
|
||||
"yes",
|
||||
]
|
||||
test_unimplemented = []
|
||||
|
|
2
build.rs
2
build.rs
|
@ -16,7 +16,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" | "fuchsia" | "generic" | "nightly" | "test_unimplemented" => continue,
|
||||
"default" | "unix" | "redox" | "fuchsia" | "generic" | "nightly" | "test_unimplemented" => continue,
|
||||
_ => {},
|
||||
}
|
||||
crates.push(krate.to_string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue