Skip to content

Commit

Permalink
Upgraded to wasmer-toml v0.9.2 and switched to CommandV2 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Nov 8, 2023
1 parent 0b90c83 commit 4762248
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ version = "4.2.3"

[workspace.dependencies]
memoffset = "0.9.0"
wasmer-toml = "0.9.1"
wasmer-toml = "0.9.2"
webc = { version = "5.6.0", default-features = false, features = ["package"] }

[build-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions lib/cli/src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ impl Init {
BinOrLib::Bin => modules
.iter()
.map(|m| {
wasmer_toml::Command::V1(wasmer_toml::CommandV1 {
wasmer_toml::Command::V2(wasmer_toml::CommandV2 {
name: m.name.clone(),
module: wasmer_toml::ModuleReference::CurrentPackage {
module: m.name.clone(),
},
main_args: None,
package: None,
runner: "wasi".to_string(),
annotations: None,
})
})
.collect(),
Expand Down
1 change: 1 addition & 0 deletions tests/integration/cli/tests/fixtures/init1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ wasi = '0.1.0-unstable'
[[command]]
name = 'testfirstproject'
module = 'testfirstproject'
runner = 'wasi'
1 change: 1 addition & 0 deletions tests/integration/cli/tests/fixtures/init4.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ wasi = '0.1.0-unstable'
[[command]]
name = 'wasmer'
module = 'wasmer'
runner = 'wasi'

0 comments on commit 4762248

Please sign in to comment.