Skip to content

Commit

Permalink
Remove wit-{component,parser} from this repository (#434)
Browse files Browse the repository at this point in the history
* 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`
  • Loading branch information
alexcrichton committed Nov 17, 2022
1 parent 0220c95 commit 0b45c73
Show file tree
Hide file tree
Showing 263 changed files with 67 additions and 18,017 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,23 @@ jobs:
- run: rustup target add wasm32-unknown-unknown
- run: npm install
working-directory: crates/wit-bindgen-demo

# Install the `wasm-tools` binary with the `component` subcommand that is all
# that's needed here.
- uses: actions/cache@v3
with:
path: ${{ runner.tool_cache }}/wasm-tools
key: wasm-tools-bin-e15e768a346c30738103d372e8ccf442646628c9-${{ runner.os }}
- run: echo '${{ runner.tool_cache }}/wasm-tools/bin' >> $GITHUB_PATH
- run: |
cargo install \
wasm-tools \
--root '${{ runner.tool_cache }}/wasm-tools' \
--git https://github.com/bytecodealliance/wasm-tools \
--rev e15e768a346c30738103d372e8ccf442646628c9 \
--no-default-features \
--features component
- run: ./crates/wit-bindgen-demo/build.sh
- uses: JamesIves/github-pages-deploy-action@4.1.4
with:
Expand Down
139 changes: 47 additions & 92 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ edition.workspace = true
members = [
"crates/test-rust-wasm",
"crates/wit-bindgen-demo",
"crates/wit-component",
"crates/wasi_snapshot_preview1",
]
resolver = "2"
Expand Down Expand Up @@ -44,8 +43,8 @@ wit-bindgen-gen-markdown = { path = 'crates/gen-markdown', version = '0.3.0' }
wit-bindgen-gen-rust-lib = { path = 'crates/gen-rust-lib', version = '0.3.0' }
wit-bindgen-guest-rust = { path = 'crates/guest-rust', version = '0.3.0', default-features = false }
wit-bindgen-host-wasmtime-rust = { path = 'crates/host-wasmtime-rust', version = '0.3.0' }
wit-parser = { path = 'crates/wit-parser', version = '0.3.0' }
wit-component = { path = 'crates/wit-component', version = '0.3.0', default-features = false }
wit-parser = { git = 'https://github.com/bytecodealliance/wasm-tools' }
wit-component = { git = 'https://github.com/bytecodealliance/wasm-tools' }
wit-bindgen-rust-macro-shared = { path = 'crates/rust-macro-shared', version = '0.3.0' }

[[bin]]
Expand Down
2 changes: 1 addition & 1 deletion crates/wit-bindgen-demo/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mkdir static
cargo build -p wit-bindgen-demo --target wasm32-unknown-unknown --release

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

# Generate JS host bindings
Expand Down
40 changes: 0 additions & 40 deletions crates/wit-component/Cargo.toml

This file was deleted.

29 changes: 0 additions & 29 deletions crates/wit-component/README.md

This file was deleted.

Loading

0 comments on commit 0b45c73

Please sign in to comment.