From e6fab891ef17aba3407583beee67bbfd42f4f258 Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Mon, 21 Oct 2024 16:41:48 +0330 Subject: [PATCH 1/3] fix packaging issues --- Cargo.toml | 1 + lib/swift/Cargo.toml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d8f9d4ac0b9..16404618540 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,6 +70,7 @@ members = [ "lib/wasm-interface", "lib/journal", "lib/swift", + "lib/package", "tests/integration/cli", "tests/integration/ios", "tests/lib/compiler-test-derive", diff --git a/lib/swift/Cargo.toml b/lib/swift/Cargo.toml index 844ed275407..1793e26a3ce 100644 --- a/lib/swift/Cargo.toml +++ b/lib/swift/Cargo.toml @@ -13,15 +13,15 @@ name = "wasmer_swift" thiserror = "1" tokio = { version = "1.28.1", features = [ "rt" ], default-features = false } uniffi = "0.27" -virtual-fs = { path = "../virtual-fs", version = "0.18.0", default-features = false, features = [ +virtual-fs = { version = "=0.18.0", default-features = false, features = [ "webc-fs", ] } -wasmer = { version = "5.0.0-rc.1", path = "../api", default-features = false, features = [ +wasmer = { version = "=5.0.0-rc.1", path = "../api", default-features = false, features = [ "wamr", "std", ] } -wasmer-wasix.workspace = true -webc.workspace = true +wasmer-wasix = "=0.29.0" +webc = { version = "6.1.0", default-features = false, features = ["package"] } [build-dependencies] From 34125c851354cfdcfc5520b77e5b12af10363588 Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Mon, 21 Oct 2024 16:50:28 +0330 Subject: [PATCH 2/3] add description and license to wasmer-swift --- lib/swift/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/swift/Cargo.toml b/lib/swift/Cargo.toml index 1793e26a3ce..8010dfe2ba1 100644 --- a/lib/swift/Cargo.toml +++ b/lib/swift/Cargo.toml @@ -2,6 +2,8 @@ name = "wasmer-swift" version = "0.1.0" edition = "2021" +description = "Experimental wasmer bindings for swift" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From f7708fa118aa298bc1934d92dd4c6d5e3f671730 Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Tue, 22 Oct 2024 01:34:35 +0330 Subject: [PATCH 3/3] use path instead of registry --- lib/swift/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/swift/Cargo.toml b/lib/swift/Cargo.toml index 8010dfe2ba1..28aa443330d 100644 --- a/lib/swift/Cargo.toml +++ b/lib/swift/Cargo.toml @@ -15,15 +15,15 @@ name = "wasmer_swift" thiserror = "1" tokio = { version = "1.28.1", features = [ "rt" ], default-features = false } uniffi = "0.27" -virtual-fs = { version = "=0.18.0", default-features = false, features = [ +virtual-fs = { path = "../virtual-fs", version = "=0.18.0", default-features = false, features = [ "webc-fs", ] } wasmer = { version = "=5.0.0-rc.1", path = "../api", default-features = false, features = [ "wamr", "std", ] } -wasmer-wasix = "=0.29.0" -webc = { version = "6.1.0", default-features = false, features = ["package"] } +wasmer-wasix = { version = "=0.29.0", path = "../wasix" } +webc.workspace = true [build-dependencies]