mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +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"
|
||||||
]
|
]
|
||||||
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",
|
"base32",
|
||||||
"base64",
|
"base64",
|
||||||
"basename",
|
"basename",
|
||||||
"cat",
|
|
||||||
"cksum",
|
"cksum",
|
||||||
"comm",
|
"comm",
|
||||||
"cp",
|
"cp",
|
||||||
|
@ -84,22 +109,13 @@ generic = [
|
||||||
"false",
|
"false",
|
||||||
"fmt",
|
"fmt",
|
||||||
"fold",
|
"fold",
|
||||||
"hashsum",
|
|
||||||
"head",
|
"head",
|
||||||
"link",
|
"link",
|
||||||
"ln",
|
|
||||||
"ls",
|
|
||||||
"mkdir",
|
|
||||||
"mktemp",
|
|
||||||
"more",
|
|
||||||
"mv",
|
"mv",
|
||||||
"nl",
|
|
||||||
"nproc",
|
|
||||||
"od",
|
"od",
|
||||||
"paste",
|
"paste",
|
||||||
"printenv",
|
"printenv",
|
||||||
"printf",
|
"printf",
|
||||||
"ptx",
|
|
||||||
"pwd",
|
"pwd",
|
||||||
"readlink",
|
"readlink",
|
||||||
"realpath",
|
"realpath",
|
||||||
|
@ -107,17 +123,12 @@ generic = [
|
||||||
"rm",
|
"rm",
|
||||||
"rmdir",
|
"rmdir",
|
||||||
"seq",
|
"seq",
|
||||||
"shred",
|
|
||||||
"shuf",
|
"shuf",
|
||||||
"sleep",
|
"sleep",
|
||||||
"sort",
|
|
||||||
"split",
|
"split",
|
||||||
"sum",
|
"sum",
|
||||||
"sync",
|
|
||||||
"tac",
|
"tac",
|
||||||
"tail",
|
|
||||||
"tee",
|
"tee",
|
||||||
"test",
|
|
||||||
"tr",
|
"tr",
|
||||||
"true",
|
"true",
|
||||||
"truncate",
|
"truncate",
|
||||||
|
@ -125,7 +136,6 @@ generic = [
|
||||||
"unexpand",
|
"unexpand",
|
||||||
"uniq",
|
"uniq",
|
||||||
"wc",
|
"wc",
|
||||||
"whoami",
|
|
||||||
"yes",
|
"yes",
|
||||||
]
|
]
|
||||||
test_unimplemented = []
|
test_unimplemented = []
|
||||||
|
|
2
build.rs
2
build.rs
|
@ -16,7 +16,7 @@ pub fn main() {
|
||||||
if val == "1" && key.starts_with(feature_prefix) {
|
if val == "1" && key.starts_with(feature_prefix) {
|
||||||
let krate = key[feature_prefix.len()..].to_lowercase();
|
let krate = key[feature_prefix.len()..].to_lowercase();
|
||||||
match krate.as_ref() {
|
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());
|
crates.push(krate.to_string());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue