Remove the old wast and wasm2obj commands. (#1372)
* Remove the old wast and wasm2obj commands. These are subsumed by the `wasmtime wast` and `wasmtime wasm2obj` commands. Fixes #827. * Remove wasm2obj install commands.
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -364,7 +364,7 @@ jobs:
|
||||
- run: rustup target add wasm32-wasi
|
||||
|
||||
# Build `wasmtime` and executables
|
||||
- run: $CENTOS cargo build --release --bin wasmtime --bin wasm2obj
|
||||
- run: $CENTOS cargo build --release --bin wasmtime
|
||||
shell: bash
|
||||
# Build `libwasmtime.so`
|
||||
- run: $CENTOS cargo build --release --manifest-path crates/c-api/Cargo.toml
|
||||
@@ -388,9 +388,9 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
# Move binaries to dist folder
|
||||
- run: cp target/release/{wasmtime,wasm2obj} dist
|
||||
- run: cp target/release/wasmtime dist
|
||||
if: matrix.os != 'windows-latest'
|
||||
- run: cp target/release/{wasmtime,wasm2obj}.exe dist
|
||||
- run: cp target/release/wasmtime.exe dist
|
||||
shell: bash
|
||||
if: matrix.os == 'windows-latest'
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@ mktarball() {
|
||||
bin_pkgname=wasmtime-$TAG-$platform
|
||||
mkdir tmp/$bin_pkgname
|
||||
cp LICENSE README.md tmp/$bin_pkgname
|
||||
mv bins-$src/{wasmtime,wasm2obj}$exe tmp/$bin_pkgname
|
||||
chmod +x tmp/$bin_pkgname/{wasmtime,wasm2obj}$exe
|
||||
mv bins-$src/wasmtime$exe tmp/$bin_pkgname
|
||||
chmod +x tmp/$bin_pkgname/wasmtime$exe
|
||||
mktarball $bin_pkgname
|
||||
|
||||
if [ "$exe" = ".exe" ]; then
|
||||
|
||||
@@ -64,14 +64,10 @@
|
||||
<Component Id="wasmtime.exe" Guid="*">
|
||||
<File Id="wasmtime.exe" Source="target\release\wasmtime.exe" KeyPath="yes" Checksum="yes"/>
|
||||
</Component>
|
||||
<Component Id="wasm2obj.exe" Guid="*">
|
||||
<File Id="wasm2obj.exe" Source="target\release\wasm2obj.exe" KeyPath="yes" Checksum="yes"/>
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
|
||||
<Feature Id="InstallWasmtime" Title="Wasmtime and Wasm2obj" Level="1">
|
||||
<Feature Id="InstallWasmtime" Title="Wasmtime" Level="1">
|
||||
<ComponentRef Id="wasmtime.exe" />
|
||||
<ComponentRef Id="wasm2obj.exe" />
|
||||
<ComponentRef Id="LICENSE" />
|
||||
<ComponentRef Id="README" />
|
||||
<ComponentRef Id="InstallDir" />
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
//! The `wasm2obj` command line tool.
|
||||
//!
|
||||
//! Translates WebAssembly modules to object files.
|
||||
//! See `wasm2obj --help` for usage.
|
||||
|
||||
use anyhow::Result;
|
||||
use structopt::StructOpt;
|
||||
use wasmtime_cli::commands::WasmToObjCommand;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
WasmToObjCommand::from_args().execute()
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
//! The `wast` command line tool.
|
||||
//!
|
||||
//! Runs WebAssembly test script files.
|
||||
//! See `wast --help` for usage.
|
||||
|
||||
use anyhow::Result;
|
||||
use structopt::StructOpt;
|
||||
use wasmtime_cli::commands::WastCommand;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
WastCommand::from_args().execute()
|
||||
}
|
||||
Reference in New Issue
Block a user