From af5c3f57c74e9533521e3f51309f2a1af8a86efc Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 8 Oct 2025 19:14:20 +0100 Subject: [PATCH 1/4] Clarify Swift version, SwiftPM instructions in `README.md` Also added new SwiftPM CLI commands for adding dependencies. --- README.md | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5768d2ae..5d790fc2 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,30 @@ Hello, World! #### Swift Package Manager -You can use WasmKit as a [Swift Package Manager](https://www.swift.org/documentation/package-manager/) dependency by adding the following to your `Package.swift` file: +You can use WasmKit as a [Swift Package Manager](https://www.swift.org/documentation/package-manager/) dependency. + +Run the following command to add the dependency: + +``` +swift package add-dependency https://github.com/swiftwasm/WasmKit --up-to-next-minor-from 0.1.6 +swift package add-target-dependency WasmKit --package WasmKit +``` + +You can also add the following snippet manually to your `Package.swift` file: ```swift dependencies: [ - .package(url: "https://github.com/swiftwasm/WasmKit.git", from: "0.1.0"), + // ...other dependencies + .package(url: "https://github.com/swiftwasm/WasmKit.git", .upToNextMinor(from: "0.1.6")), ], +// ...other package configuration +targets: [ + // ...other targets + .target( + name: " Date: Wed, 8 Oct 2025 19:16:34 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d790fc2..2f321466 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Hello, World! You can use WasmKit as a [Swift Package Manager](https://www.swift.org/documentation/package-manager/) dependency. -Run the following command to add the dependency: +Run the following commands to add the dependency: ``` swift package add-dependency https://github.com/swiftwasm/WasmKit --up-to-next-minor-from 0.1.6 From 7626cd8e52bc7e4dff7013f2a736a3d25ce6554e Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 8 Oct 2025 19:33:00 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f321466..4f607142 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ dependencies: [ targets: [ // ...other targets .target( - name: "", dependencies: [.product(name: "WasmKit", package: "WasmKit")], ) ] From 3cd502dbd05a01c9e7b0151453fa6a97019a16e0 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Thu, 9 Oct 2025 21:10:39 +0100 Subject: [PATCH 4/4] Address review feedback in `README.md` Co-authored-by: Joseph Heck --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f607142..c79ba7b7 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Hello, World! #### Swift Package Manager -You can use WasmKit as a [Swift Package Manager](https://www.swift.org/documentation/package-manager/) dependency. +To use WasmKit in your package, add it as a [Swift Package Manager](https://www.swift.org/documentation/package-manager/) dependency. Run the following commands to add the dependency: