Skip to content

Commit ecb0638

Browse files
committed
chore: upgrade all crates to version 0.2.0
1 parent e52d213 commit ecb0638

File tree

36 files changed

+1030
-586
lines changed

36 files changed

+1030
-586
lines changed

.github/workflows/publish.yml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,38 @@ jobs:
3838
with:
3939
# We need history to get tags
4040
fetch-depth: 0
41+
42+
# Cache Rust dependencies to speed up builds
43+
- name: Cache Rust dependencies
44+
uses: actions/cache@v4
45+
with:
46+
path: |
47+
~/.cargo/bin/
48+
~/.cargo/registry/index/
49+
~/.cargo/registry/cache/
50+
~/.cargo/git/db/
51+
target/
52+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
4153

4254
- name: Setup Python
4355
uses: actions/setup-python@v5
4456
with:
4557
python-version: '3.x'
58+
59+
# Setup Java for PlantUML
60+
- name: Set up JDK
61+
uses: actions/setup-java@v4
62+
with:
63+
distribution: 'temurin'
64+
java-version: '17'
4665

4766
- name: Setup Rust and build API docs
4867
uses: actions-rs/toolchain@v1
4968
with:
5069
profile: minimal
5170
toolchain: nightly
5271
override: true
72+
components: llvm-tools-preview
5373

5474
- name: Check if just is available
5575
id: check-just
@@ -67,8 +87,28 @@ jobs:
6787
run: cargo install just --locked
6888

6989
- name: Install python dependencies
70-
if: env.JUST_INSTALLED != 'true'
7190
run: just setup-python-deps
91+
92+
- name: Install cargo-llvm-cov
93+
run: cargo install cargo-llvm-cov
94+
95+
# Install PlantUML for diagram generation
96+
- name: Install PlantUML
97+
run: |
98+
sudo apt-get update
99+
sudo apt-get install -y plantuml
100+
101+
# Run coverage separately to handle errors better
102+
- name: Generate code coverage
103+
run: |
104+
# Generate coverage data
105+
cargo xtask coverage || {
106+
echo "::warning::Failed to generate coverage data. Creating placeholder..."
107+
mkdir -p target/llvm-cov/html
108+
echo "<h1>Coverage Report Not Available</h1>" > target/llvm-cov/html/index.html
109+
mkdir -p docs/source
110+
cp docs/source/_generated_coverage_summary.rst.template docs/source/_generated_coverage_summary.rst || true
111+
}
72112
73113
- name: Determine version
74114
id: determine-version
@@ -102,6 +142,9 @@ jobs:
102142
export DOCS_VERSION="${{ env.VERSION }}"
103143
export DOCS_VERSION_PATH_PREFIX="/"
104144
145+
# Skip coverage generation since we already did it separately
146+
export SKIP_COVERAGE=1
147+
105148
# Build documentation (continue on error)
106149
just docs-with-diagrams || {
107150
echo "::warning::Documentation build encountered errors but will try to continue with versioning"

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ members = [
1919
resolver = "2" # Use edition 2021 resolver
2020

2121
[workspace.package]
22-
version = "0.1.0"
22+
version = "0.2.0"
2323
edition = "2021"
2424
rust-version = "1.86.0"
2525
license = "MIT"
@@ -30,8 +30,8 @@ tracing-subscriber = "0.3"
3030
anyhow = "1.0"
3131
clap = { version = "4.5", features = ["derive"] }
3232
wit-bindgen = "0.41.0"
33-
wrt-types = { path = "./wrt-types", version = "0.1.0" }
34-
wrt-format = { path = "./wrt-format", version = "0.1.0" }
33+
wrt-types = { path = "./wrt-types", version = "0.2.0" }
34+
wrt-format = { path = "./wrt-format", version = "0.2.0" }
3535

3636
[workspace.lints.rust]
3737
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(test)'] }

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
module(
99
name = "wrt",
10-
version = "0.1.0",
10+
version = "0.2.0",
1111
)
1212

1313
bazel_dep(name = "rules_rust", version = "0.60.0")

example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "example"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
license.workspace = true
66
description = "Example WebAssembly Module using WASI logging"

wrt-component/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wrt-component"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
description = "WebAssembly Component Model support for WRT"
66
license = "MIT OR Apache-2.0"
@@ -10,11 +10,11 @@ keywords = ["wasm", "webassembly", "runtime", "component-model"]
1010
categories = ["wasm", "no-std"]
1111

1212
[dependencies]
13-
wrt-error = { path = "../wrt-error", version = "0.1.0" }
14-
wrt-format = { path = "../wrt-format", version = "0.1.0" }
15-
wrt-host = { path = "../wrt-host", version = "0.1.0" }
16-
wrt-types = { path = "../wrt-types", version = "0.1.0" }
17-
wrt-intercept = { path = "../wrt-intercept", version = "0.1.0" }
13+
wrt-error = { path = "../wrt-error", version = "0.2.0" }
14+
wrt-format = { path = "../wrt-format", version = "0.2.0" }
15+
wrt-host = { path = "../wrt-host", version = "0.2.0" }
16+
wrt-types = { path = "../wrt-types", version = "0.2.0" }
17+
wrt-intercept = { path = "../wrt-intercept", version = "0.2.0" }
1818

1919
# Optional dependencies
2020
log = { version = "0.4", optional = true }

wrt-decoder/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[package]
22
name = "wrt-decoder"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
description = "WebAssembly module decoder for wrt runtime"
66
license = "MIT"
77
repository = "https://github.com/avrabe/wrt"
88

99
[dependencies]
1010
# Error handling
11-
wrt-error = { path = "../wrt-error", version = "0.1.0" }
11+
wrt-error = { path = "../wrt-error", version = "0.2.0" }
1212
# Format handling
13-
wrt-format = { path = "../wrt-format", version = "0.1.0" }
13+
wrt-format = { path = "../wrt-format", version = "0.2.0" }
1414
# Shared type definitions
15-
wrt-types = { path = "../wrt-types", version = "0.1.0" }
15+
wrt-types = { path = "../wrt-types", version = "0.2.0" }
1616
# Core dependencies
1717
log = { version = "0.4", optional = true }
1818
# WAT parsing (for testing)

wrt-error/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add the dependency to your `Cargo.toml`:
1919

2020
```toml
2121
[dependencies]
22-
wrt-error = { version = "0.1.0", features = ["std"] }
22+
wrt-error = { version = "0.2.0", features = ["std"] }
2323
```
2424

2525
### Basic example

wrt-format/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "wrt-format"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
description = "WebAssembly format handling for WRT"
66
license = "MIT"
77
repository = "https://github.com/avrabe/wrt"
88

99
[dependencies]
10-
wrt-error = { path = "../wrt-error", version = "0.1.0" }
11-
wrt-types = { path = "../wrt-types", version = "0.1.0" }
10+
wrt-error = { path = "../wrt-error", version = "0.2.0" }
11+
wrt-types = { path = "../wrt-types", version = "0.2.0" }
1212

1313
[dev-dependencies]
1414
# For property testing

wrt-format/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ Add the dependency to your `Cargo.toml`:
2121

2222
```toml
2323
[dependencies]
24-
wrt-format = { version = "0.1.0" }
24+
wrt-format = { version = "0.2.0" }
2525
```
2626

2727
For no_std environments:
2828

2929
```toml
3030
[dependencies]
31-
wrt-format = { version = "0.1.0", default-features = false, features = ["no_std"] }
31+
wrt-format = { version = "0.2.0", default-features = false, features = ["no_std"] }
3232
```
3333

3434
### Basic example

wrt-host/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wrt-host"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
description = "Host function infrastructure for the WebAssembly Runtime (WRT)"
66
license = "MIT"
@@ -10,9 +10,9 @@ keywords = ["wasm", "webassembly", "runtime", "host", "component-model"]
1010
categories = ["wasm", "no-std"]
1111

1212
[dependencies]
13-
wrt-error = { path = "../wrt-error", version = "0.1.0" }
14-
wrt-types = { path = "../wrt-types", version = "0.1.0" }
15-
wrt-intercept = { path = "../wrt-intercept", version = "0.1.0" }
13+
wrt-error = { path = "../wrt-error", version = "0.2.0" }
14+
wrt-types = { path = "../wrt-types", version = "0.2.0" }
15+
wrt-intercept = { path = "../wrt-intercept", version = "0.2.0" }
1616

1717
# Std dependencies
1818
log = { version = "0.4", optional = true }

0 commit comments

Comments
 (0)