forked from WebAssembly/WASI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make witx cli a new crate, refactor how we validate repo contents (We…
…bAssembly#398) * make the witx cli tool a separate crate * delete phases.rs: not the witx crate's responsibility * use `witx docs --check` to replace specialized tests * repo-docs can be a shell script * parallelize CI a little * wibble * typo; only need to validate witx on one os * add ephemeral * delete wasi-docs test file * i love too program in yaml * repo-docs: reduce duplication * drop dev-dependencies in witx
- Loading branch information
Pat Hickey
authored
Feb 24, 2021
1 parent
2a26951
commit 7ec4b1a
Showing
8 changed files
with
174 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
cd $(dirname $(realpath $0))/witx | ||
cargo run -p witx-cli -- docs $1 ../../phases/snapshot/witx/wasi_snapshot_preview1.witx --output ../../phases/snapshot/docs.md | ||
cargo run -p witx-cli -- docs $1 ../../phases/old/snapshot_0/witx/wasi_unstable.witx --output ../../phases/old/snapshot_0/docs.md | ||
cargo run -p witx-cli -- docs $1 \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_args.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_clock.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_environ.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_fd.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_path.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_poll.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_proc.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_random.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_sched.witx \ | ||
../../phases/ephemeral/witx/wasi_ephemeral_sock.witx \ | ||
--output ../../phases/ephemeral/docs.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "witx-cli" | ||
version = "0.9.0" | ||
description = "CLI for operating on witx file format" | ||
homepage = "https://github.com/WebAssembly/WASI" | ||
repository = "https://github.com/WebAssembly/WASI" | ||
license = "Apache-2.0" | ||
categories = ["wasm"] | ||
keywords = ["webassembly", "wasm"] | ||
authors = ["Pat Hickey <[email protected]>", "Alex Crichton <[email protected]>"] | ||
edition = "2018" | ||
|
||
[[bin]] | ||
name = "witx" | ||
path = "src/main.rs" | ||
|
||
[dependencies] | ||
witx = { path = "../", version = "0.9.0" } | ||
anyhow = "1" | ||
log = "0.4" | ||
thiserror = "1.0" | ||
diff = "0.1.11" | ||
pretty_env_logger = "0.4" | ||
structopt = "0.3" | ||
rayon = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.