summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/release.yaml21
-rw-r--r--.github/workflows/test.yaml8
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml19
-rw-r--r--crates/cli/Cargo.toml18
-rw-r--r--crates/parser/Cargo.toml5
-rw-r--r--crates/tinywasm/Cargo.toml9
7 files changed, 55 insertions, 29 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 0000000..d1492a7
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -0,0 +1,21 @@
+name: Publish
+on:
+ push:
+ tags: ["v*"]
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ environment: release
+ permissions:
+ id-token: write
+ contents: read
+ steps:
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+ with:
+ persist-credentials: false
+ - uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1.0.4
+ id: auth
+ - run: cargo publish --workspace
+ env:
+ CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 0e0c3c5..072e4e4 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -16,8 +16,9 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
+ persist-credentials: false
- name: Install Rust toolchain
- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
+ uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
with:
toolchain: nightly
components: rust-src
@@ -37,7 +38,7 @@ jobs:
- name: Build wasm
run: ./examples/rust/build.sh
- name: Save artifacts
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: wasm
path: examples/rust/out
@@ -80,9 +81,10 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
+ persist-credentials: false
- name: Install Rust toolchain
- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
+ uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
with:
toolchain: ${{ matrix.rust }}
rustflags: ""
diff --git a/Cargo.lock b/Cargo.lock
index 43cc6a7..cc49fbb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -904,18 +904,15 @@ version = "0.9.0-alpha.0"
dependencies = [
"criterion",
"eyre",
- "indexmap",
"libm",
"log",
"owo-colors",
- "pretty_env_logger",
"serde",
"serde_json",
"tinywasm-cli",
"tinywasm-parser",
"tinywasm-types",
"wasm-testsuite",
- "wast",
"wat",
]
@@ -945,7 +942,6 @@ dependencies = [
"log",
"tinywasm-types",
"wasmparser 0.247.0",
- "wat",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index c3e1ae7..115725d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,18 +4,23 @@ default-members=[".", "crates/tinywasm", "crates/types", "crates/parser"]
resolver="2"
[workspace.dependencies]
-wast="247"
-wat="1.247"
-wasmparser={version="0.247", default-features=false}
-eyre="0.6"
-log="0.4"
-pretty_env_logger="0.5"
+tinywasm-parser={version="0.9.0-alpha.0", path="crates/parser", default-features=false}
+tinywasm-types={version="0.9.0-alpha.0", path="crates/types", default-features=false}
+tinywasm-cli={version="0.9.0-alpha.0", path="crates/cli", default-features=false}
+tinywasm={version="0.9.0-alpha.0", path="crates/tinywasm", default-features=false}
+
criterion={version="0.8", default-features=false, features=["cargo_bench_support", "rayon"]}
-wasm-testsuite={version="0.7"}
+eyre="0.6"
indexmap="2.14"
+log="0.4"
owo-colors={version="4.3"}
+pretty_env_logger="0.5"
serde_json={version="1.0"}
serde={version="1.0", features=["derive"]}
+wasm-testsuite={version="0.7"}
+wasmparser={version="0.247", default-features=false}
+wast="247"
+wat="1.247"
[workspace.package]
version="0.9.0-alpha.0"
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index add21d3..1aed0cc 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -23,12 +23,20 @@ path="src/bin.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-clap={version="4.5", features=["derive"]}
-clap_complete="4.5"
+clap={version="4.6", features=["derive"]}
+clap_complete="4.6"
eyre.workspace=true
log.workspace=true
pretty_env_logger.workspace=true
-tinywasm={version="0.9.0-alpha.0", path="../tinywasm", features=["std", "parser"]}
+tinywasm={workspace=true, features=[
+ "std",
+ "parser",
+ "log",
+ "archive",
+ "canonicalize-nans",
+ "debug",
+ "parallel-parser",
+]}
wat={workspace=true, optional=true}
wast={workspace=true, optional=true}
owo-colors={workspace=true}
@@ -40,6 +48,6 @@ wat=["dep:wat"]
wast=["dep:wast"]
[dev-dependencies]
-assert_cmd="2.0"
+assert_cmd="2.2"
predicates="3.1"
-tempfile="3.20"
+tempfile="3.27"
diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml
index 1c228c4..417253d 100644
--- a/crates/parser/Cargo.toml
+++ b/crates/parser/Cargo.toml
@@ -14,13 +14,10 @@ readme="README.md"
[dependencies]
wasmparser={workspace=true, features=["validate", "features", "simd"]}
log={workspace=true, optional=true}
-tinywasm-types={version="0.9.0-alpha.0", path="../types", default-features=false}
+tinywasm-types={workspace=true}
[features]
default=["std", "log", "parallel"]
log=["dep:log"]
std=["tinywasm-types/std", "wasmparser/std"]
parallel=["std"]
-
-[dev-dependencies]
-wat.workspace=true
diff --git a/crates/tinywasm/Cargo.toml b/crates/tinywasm/Cargo.toml
index 15ae832..fd33d1a 100644
--- a/crates/tinywasm/Cargo.toml
+++ b/crates/tinywasm/Cargo.toml
@@ -21,18 +21,15 @@ rustdoc-args=["--cfg", "docsrs"]
[dependencies]
log={workspace=true, optional=true}
-tinywasm-parser={version="0.9.0-alpha.0", path="../parser", default-features=false, optional=true}
-tinywasm-types={version="0.9.0-alpha.0", path="../types", default-features=false}
+tinywasm-parser={workspace=true, optional=true}
+tinywasm-types={workspace=true}
libm={version="0.2", default-features=false}
[dev-dependencies]
wasm-testsuite.workspace=true
-tinywasm-cli={version="0.9.0-alpha.0", path="../cli", features=["wast"]}
-indexmap.workspace=true
-wast.workspace=true
+tinywasm-cli={path="../cli", features=["wast", "wat"]}
wat.workspace=true
eyre.workspace=true
-pretty_env_logger.workspace=true
criterion.workspace=true
owo-colors.workspace=true
serde_json.workspace=true