Skip to content

Commit 0b45c73

Browse files
authored
Remove wit-{component,parser} from this repository (#434)
* Remove wit-{component,parser} from this repository These crates have been migrated to the `wasm-tools` repository as part of bytecodealliance/wasm-tools#819 to handle the first step of #395 * Use `wasm-tools` for demo instead of `wit-component`
1 parent 0220c95 commit 0b45c73

263 files changed

Lines changed: 67 additions & 18017 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,23 @@ jobs:
8686
- run: rustup target add wasm32-unknown-unknown
8787
- run: npm install
8888
working-directory: crates/wit-bindgen-demo
89+
90+
# Install the `wasm-tools` binary with the `component` subcommand that is all
91+
# that's needed here.
92+
- uses: actions/cache@v3
93+
with:
94+
path: ${{ runner.tool_cache }}/wasm-tools
95+
key: wasm-tools-bin-e15e768a346c30738103d372e8ccf442646628c9-${{ runner.os }}
96+
- run: echo '${{ runner.tool_cache }}/wasm-tools/bin' >> $GITHUB_PATH
97+
- run: |
98+
cargo install \
99+
wasm-tools \
100+
--root '${{ runner.tool_cache }}/wasm-tools' \
101+
--git https://github.com/bytecodealliance/wasm-tools \
102+
--rev e15e768a346c30738103d372e8ccf442646628c9 \
103+
--no-default-features \
104+
--features component
105+
89106
- run: ./crates/wit-bindgen-demo/build.sh
90107
- uses: JamesIves/github-pages-deploy-action@4.1.4
91108
with:

Cargo.lock

Lines changed: 47 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ edition.workspace = true
88
members = [
99
"crates/test-rust-wasm",
1010
"crates/wit-bindgen-demo",
11-
"crates/wit-component",
1211
"crates/wasi_snapshot_preview1",
1312
]
1413
resolver = "2"
@@ -44,8 +43,8 @@ wit-bindgen-gen-markdown = { path = 'crates/gen-markdown', version = '0.3.0' }
4443
wit-bindgen-gen-rust-lib = { path = 'crates/gen-rust-lib', version = '0.3.0' }
4544
wit-bindgen-guest-rust = { path = 'crates/guest-rust', version = '0.3.0', default-features = false }
4645
wit-bindgen-host-wasmtime-rust = { path = 'crates/host-wasmtime-rust', version = '0.3.0' }
47-
wit-parser = { path = 'crates/wit-parser', version = '0.3.0' }
48-
wit-component = { path = 'crates/wit-component', version = '0.3.0', default-features = false }
46+
wit-parser = { git = 'https://github.com/bytecodealliance/wasm-tools' }
47+
wit-component = { git = 'https://github.com/bytecodealliance/wasm-tools' }
4948
wit-bindgen-rust-macro-shared = { path = 'crates/rust-macro-shared', version = '0.3.0' }
5049

5150
[[bin]]

crates/wit-bindgen-demo/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mkdir static
99
cargo build -p wit-bindgen-demo --target wasm32-unknown-unknown --release
1010

1111
# Translate the core wasm binary to a component
12-
cargo run --release -p wit-component --bin wit-component -- \
12+
wasm-tools component new \
1313
target/wasm32-unknown-unknown/release/wit_bindgen_demo.wasm -o target/demo.wasm
1414

1515
# Generate JS host bindings

crates/wit-component/Cargo.toml

Lines changed: 0 additions & 40 deletions
This file was deleted.

crates/wit-component/README.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)