Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ jobs:
- { os: ubuntu-latest , target: x86_64-unknown-linux-gnu , features: "feat_os_unix,uudoc" , use-cross: no, workspace-tests: true }
- { os: ubuntu-latest , target: x86_64-unknown-linux-musl , features: feat_os_unix_musl , use-cross: use-cross }
- { os: ubuntu-latest , target: x86_64-unknown-redox , features: feat_os_unix_redox , use-cross: redoxer , skip-tests: true , check-only: true }
- { os: ubuntu-latest , target: wasm32-wasip1, default-features: false, features: "basenc,cksum", skip-tests: true }
- { os: ubuntu-latest , target: wasm32-wasip1, default-features: false, features: feat_wasm, skip-tests: true }
- { os: macos-latest , target: aarch64-apple-darwin , features: feat_os_macos, workspace-tests: true } # M1 CPU
# PR #7964: chcon should not break build without the feature. cargo check is enough to detect it.
- { os: macos-latest , target: aarch64-apple-darwin , workspace-tests: true, check-only: true } # M1 CPU
Expand Down
2 changes: 2 additions & 0 deletions .vscode/cspell.dictionaries/workspace.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ getcwd
# * other
weblate
algs
wasm
wasip

# * stty terminal flags
brkint
Expand Down
55 changes: 55 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,61 @@ feat_Tier1 = [
"whoami",
]
## (primary platforms) feature sets
# "feat_wasm" == set of utilities which can be built for wasm target
# We don't need to support all of wasm targets. So the ambiguous name is used at here
# It is bit complex to deduplicate with other lists
feat_wasm = [
"basename",
"base32",
"base64",
"basenc",
"cut",
"date",
"dircolors",
"dirname",
"echo",
"expand",
"factor",
"false",
"fmt",
"fold",
"join",
"link",
"nl",
"numfmt",
"od",
"paste",
"pr",
"printenv",
"printf",
"ptx",
"pwd",
"seq",
"shred",
"shuf",
"sleep",
"sum",
"tee",
"true",
"truncate",
"unexpand",
"uniq",
"unlink",
"wc",
"yes",
# cksum family
"cksum",
"b2sum",
"md5sum",
"sha1sum",
"sha224sum",
"sha256sum",
"sha384sum",
"sha512sum",
# useless?
"arch",
"uname",
]
# "feat_os_macos" == set of utilities which can be built/run on the MacOS platform
feat_os_macos = [
"feat_os_unix", ## == a modern/usual *nix platform
Expand Down
6 changes: 4 additions & 2 deletions docs/src/platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ The platforms in tier 1 and the platforms that we test in CI are listed below.
| **macOS** | `x86_64-apple-darwin` |
| **Windows** | `i686-pc-windows-msvc` <br> `x86_64-pc-windows-gnu` <br> `x86_64-pc-windows-msvc` |
| **FreeBSD** | `x86_64-unknown-freebsd` |
| **Android** | `i686-linux-android` |
| **OpenBSD** | `x86_64-unknown-openbsd` |
| **Android** | `x86_64-linux-android` |
| **wasm32** | `wasm32-wasip1` |

The platforms in tier 2 are more vague, but include:

- untested variations of the platforms above,
- Redox OS,
- and BSDs such as OpenBSD, NetBSD & DragonFlyBSD.
- and BSDs such as NetBSD & DragonFlyBSD.

## Utility compatibility per platform

Expand Down
Loading