Skip to content

Commit ebe85c7

Browse files
authored
Move witx program to an example (#243)
This allows crates which depend on `witx` for library support to avoid pulling in `pretty_env_logger` and `structopt` since those are only used by the binary program instead of the library itself.
1 parent 3fd0abd commit ebe85c7

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tools/witx/Cargo.toml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ edition = "2018"
1313
[lib]
1414
crate-type=["rlib"]
1515

16-
[[bin]]
17-
name = "witx"
18-
path = "src/main.rs"
19-
2016
[dependencies]
21-
structopt = "0.3"
22-
wast = { version = "9.0.0", default-features = false }
23-
thiserror = "1.0"
24-
log = "0.4"
25-
pretty_env_logger = "0.3"
2617
anyhow = "1"
18+
log = "0.4"
19+
thiserror = "1.0"
20+
wast = { version = "9.0.0", default-features = false }
2721

2822
[dev-dependencies]
2923
diff = "0.1.11"
24+
pretty_env_logger = "0.3"
25+
structopt = "0.3"
File renamed without changes.

0 commit comments

Comments
 (0)