Skip to content

Commit bc3c8df

Browse files
committed
feat(cargo): workspace
1 parent 70fe551 commit bc3c8df

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

Cargo.toml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ members = [
77

88
[package]
99
name = "wasm-trampoline"
10+
authors.workspace = true
11+
edition.workspace = true
12+
version.workspace = true
13+
14+
[workspace.package]
1015
authors = ["ANDYL Open Source <oss@andyl.com>"]
1116
version = "0.1.0"
1217
edition = "2024"
@@ -20,17 +25,19 @@ async = [
2025
"wasmtime/component-model-async",
2126
]
2227

23-
[dependencies]
28+
[workspace.dependencies]
2429
anyhow = "1"
2530
derivative = "2"
2631
semver = "1"
32+
wasmtime = { version = "33", features = ["component-model"] }
33+
wit-bindgen = "0.42"
2734

2835
[target.'cfg(unix)'.dependencies]
29-
anyhow = "1"
30-
derivative = "2"
31-
semver = "1"
36+
anyhow.workspace = true
37+
derivative.workspace = true
38+
semver.workspace = true
3239
indexmap = "2"
3340
slab = "0.4"
3441
snafu = "0.8"
3542
wac-types = "0.6"
36-
wasmtime = { version = "33", features = ["component-model"] }
43+
wasmtime.workspace = true

tests/runner/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "runner"
33
version = "0.1.0"
4-
edition = "2024"
4+
edition.workspace = true
55

66
[target.'cfg(unix)'.dependencies]
7-
anyhow = "1.0"
8-
semver = "1.0"
7+
anyhow.workspace = true
8+
semver.workspace = true
99
tokio = { version = "1.0", features = ["full"] }
10-
wasmtime = { version = "33", features = ["component-model", "async"] }
10+
wasmtime = { workspace = true, features = ["component-model", "async"] }
1111
wasmtime-wasi = { version = "33" }
1212
wasm-trampoline = { path = "../.." }

tests/wasm/application/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "application"
33
version = "0.4.0"
4-
edition = "2024"
4+
edition.workspace = true
55

66
[lib]
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
wit-bindgen = "0.42"
10+
wit-bindgen.workspace = true

tests/wasm/kvstore/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "kvstore"
33
version = "2.1.6"
4-
edition = "2024"
4+
edition.workspace = true
55

66
[lib]
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
wit-bindgen = "0.42"
10+
wit-bindgen.workspace = true

tests/wasm/logger/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "logger"
33
version = "1.0.0"
4-
edition = "2024"
4+
edition.workspace = true
55

66
[lib]
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
wit-bindgen = "0.42"
10+
wit-bindgen.workspace = true

0 commit comments

Comments
 (0)