mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
maint/build ~ polish and comment 'features'
This commit is contained in:
parent
97de0dfa9b
commit
57ef582b46
1 changed files with 57 additions and 54 deletions
111
Cargo.toml
111
Cargo.toml
|
@ -7,28 +7,53 @@ autotests = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ "feat_common_core" ]
|
default = [ "feat_common_core" ]
|
||||||
#
|
## OS feature shortcodes
|
||||||
macos = [ "feat_os_unix" ]
|
macos = [ "feat_os_unix" ]
|
||||||
unix = [ "feat_os_unix" ]
|
unix = [ "feat_os_unix" ]
|
||||||
windows = [ "feat_os_windows" ]
|
windows = [ "feat_os_windows" ]
|
||||||
#
|
## project-specific feature shortcodes
|
||||||
test_unimplemented = []
|
|
||||||
nightly = []
|
nightly = []
|
||||||
#
|
test_unimplemented = []
|
||||||
# "feat_os_unix" == set of utilities which can be compiled/run on modern/usual *nix platforms
|
## feature sets
|
||||||
|
# "feat_os_unix" == set of utilities which can be built/run on modern/usual *nix platforms
|
||||||
feat_os_unix = [
|
feat_os_unix = [
|
||||||
"stdbuf",
|
"feat_common",
|
||||||
|
"feat_os_unix_musl",
|
||||||
|
"feat_os_unix_utmpx_required",
|
||||||
#
|
#
|
||||||
"feat_os_unix_musl",
|
"stdbuf",
|
||||||
"feat_os_unix_utmpx",
|
|
||||||
]
|
]
|
||||||
# "feat_os_unix_gnueabihf" == set of utilities which can be build/run for "arm-unknown-linux-gnueabihf" target (ARMv6 Linux, hardfloat)
|
# "feat_os_unix_fuchsia" == set of utilities which can be built/run on the "Fuschia" OS (refs: <https://fuchsia.dev>; <https://en.wikipedia.org/wiki/Google_Fuchsia>)
|
||||||
|
feat_os_unix_fuchsia = [
|
||||||
|
"feat_common_core",
|
||||||
|
#
|
||||||
|
"chgrp",
|
||||||
|
"chmod",
|
||||||
|
"chown",
|
||||||
|
"du",
|
||||||
|
"groups",
|
||||||
|
"hostid",
|
||||||
|
"install",
|
||||||
|
"logname",
|
||||||
|
"mkfifo",
|
||||||
|
"mknod",
|
||||||
|
"nice",
|
||||||
|
"pathchk",
|
||||||
|
"stdbuf",
|
||||||
|
"tty",
|
||||||
|
"uname",
|
||||||
|
"unlink",
|
||||||
|
]
|
||||||
|
# "feat_os_unix_gnueabihf" == set of utilities which can be built/run on the "arm-unknown-linux-gnueabihf" target (ARMv6 Linux [hardfloat])
|
||||||
feat_os_unix_gnueabihf = [
|
feat_os_unix_gnueabihf = [
|
||||||
|
"feat_common",
|
||||||
"feat_os_unix_musl",
|
"feat_os_unix_musl",
|
||||||
"feat_os_unix_utmpx",
|
"feat_os_unix_utmpx_required",
|
||||||
]
|
]
|
||||||
# "feat_os_unix_musl" == set of utilities which can be built/run on targets binding to the "musl" library (ref: <https://musl.libc.org/about.html>)
|
# "feat_os_unix_musl" == set of utilities which can be built/run on targets binding to the "musl" library (ref: <https://musl.libc.org/about.html>)
|
||||||
feat_os_unix_musl = [
|
feat_os_unix_musl = [
|
||||||
|
"feat_common",
|
||||||
|
#
|
||||||
"chgrp",
|
"chgrp",
|
||||||
"chmod",
|
"chmod",
|
||||||
"chown",
|
"chown",
|
||||||
|
@ -52,72 +77,50 @@ feat_os_unix_musl = [
|
||||||
"tty",
|
"tty",
|
||||||
"uname",
|
"uname",
|
||||||
"unlink",
|
"unlink",
|
||||||
#
|
|
||||||
"feat_common"
|
|
||||||
]
|
]
|
||||||
# "feat_os_unix_utmpx" == set of utilites requiring utmp/utmpx support
|
# "feat_os_unix_redox" == set of utilities which can be built/run on "Redox OS" (refs: <https://www.redox-os.org>; <https://en.wikipedia.org/wiki/Redox_(operating_system)>)
|
||||||
|
feat_os_unix_redox = [
|
||||||
|
"feat_common_core",
|
||||||
|
#
|
||||||
|
"uname",
|
||||||
|
"chmod",
|
||||||
|
"install",
|
||||||
|
]
|
||||||
|
# "feat_os_unix_utmpx_required" == set of utilites requiring utmp/utmpx support
|
||||||
# * ref: <https://wiki.musl-libc.org/faq.html#Q:-Why-is-the-utmp/wtmp-functionality-only-implemented-as-stubs?>
|
# * ref: <https://wiki.musl-libc.org/faq.html#Q:-Why-is-the-utmp/wtmp-functionality-only-implemented-as-stubs?>
|
||||||
feat_os_unix_utmpx = [
|
feat_os_unix_utmpx_required = [
|
||||||
"pinky",
|
"pinky",
|
||||||
"uptime",
|
"uptime",
|
||||||
"users",
|
"users",
|
||||||
"who",
|
"who",
|
||||||
]
|
]
|
||||||
# "feat_os_unix_fuchsia" == set of utilities which can be built/run on the "Fuschia" OS (refs: <https://fuchsia.dev>; <https://en.wikipedia.org/wiki/Google_Fuchsia>)
|
# "feat_os_windows" == set of utilities which can be built/run on modern/usual windows platforms
|
||||||
feat_os_unix_fuchsia = [
|
feat_os_windows = [
|
||||||
# unix utilities
|
"feat_common", ## == "feat_os_windows_legacy" + "hostname"
|
||||||
"chgrp",
|
]
|
||||||
"chmod",
|
# "feat_os_windows_legacy" == slightly restricted set of utilities which can be built/run on early windows platforms (eg, "WinXP")
|
||||||
"chown",
|
|
||||||
"du",
|
|
||||||
"groups",
|
|
||||||
"hostid",
|
|
||||||
"install",
|
|
||||||
"logname",
|
|
||||||
"mkfifo",
|
|
||||||
"mknod",
|
|
||||||
"nice",
|
|
||||||
"pathchk",
|
|
||||||
"stdbuf",
|
|
||||||
"tty",
|
|
||||||
"uname",
|
|
||||||
"unlink",
|
|
||||||
#
|
|
||||||
"feat_common_core"
|
|
||||||
]
|
|
||||||
# "feat_os_unix_redox" == set of utilities which can be compiled/run on "Redox OS" (refs: <https://www.redox-os.org>; <https://en.wikipedia.org/wiki/Redox_(operating_system)>)
|
|
||||||
feat_os_unix_redox = [
|
|
||||||
"uname",
|
|
||||||
"chmod",
|
|
||||||
"install",
|
|
||||||
#
|
|
||||||
"feat_common_core"
|
|
||||||
]
|
|
||||||
# "feat_os_windows" == set of utilities which can be compiled/run on modern/usual windows platforms
|
|
||||||
feat_os_windows = [ "feat_common" ]
|
|
||||||
# "feat_os_windows_legacy" == slightly restricted set of utilities which can be compiled/run on early windows platforms (eg, "WinXP")
|
|
||||||
feat_os_windows_legacy = [
|
feat_os_windows_legacy = [
|
||||||
|
"feat_common_core",
|
||||||
|
#
|
||||||
"arch",
|
"arch",
|
||||||
"nproc",
|
"nproc",
|
||||||
"sync",
|
"sync",
|
||||||
"touch",
|
"touch",
|
||||||
"whoami",
|
"whoami",
|
||||||
|
|
||||||
"feat_common_core"
|
|
||||||
]
|
]
|
||||||
##
|
## (common/core) feature sets
|
||||||
# "feat_common" == expanded set of utilities which can be compiled/run on usual rust "tier 1" target platforms (ref: <https://forge.rust-lang.org/release/platform-support.html>)
|
# "feat_common" == expanded set of utilities which can be built/run on the usual rust "tier 1" target platforms (ref: <https://forge.rust-lang.org/release/platform-support.html>)
|
||||||
feat_common = [
|
feat_common = [
|
||||||
|
"feat_common_core",
|
||||||
|
#
|
||||||
"arch",
|
"arch",
|
||||||
"hostname",
|
"hostname",
|
||||||
"nproc",
|
"nproc",
|
||||||
"sync",
|
"sync",
|
||||||
"touch",
|
"touch",
|
||||||
"whoami",
|
"whoami",
|
||||||
#
|
|
||||||
"feat_common_core"
|
|
||||||
]
|
]
|
||||||
# "feat_common_core" == baseline core set of utilities which can be compiled/run on most targets
|
# "feat_common_core" == baseline core set of utilities which can be built/run on most targets
|
||||||
feat_common_core = [
|
feat_common_core = [
|
||||||
"base32",
|
"base32",
|
||||||
"base64",
|
"base64",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue