Closed devsnek closed 11 months ago
Have you tried explicitly adding SwiftRs
as a dependency of your target?
let package = Package(
dependencies: [
.package(url: "https://github.com/Brendonovich/swift-rs", from: "1.0.5")
],
targets: [
.target(
dependencies: [
.product(
name: "SwiftRs",
package: "swift-rs"
)
]
)
]
)
ah, the package: "swift-rs"
seems to have been what i was missing, thank you!
Interesting, I'll update the docs accordingly.
i'm pretty unfamiliar with the swift ecosystem but from what i can tell,
package(name:url:from:)
delegates topackage(url:from:)
because it is deprecated, andpackage(url:from:)
thinks that the name isswift-rs
, while the actual name isSwiftRs
. this means it can't be depended on at all. I tested this by creating a fork namedSwiftRs
which i was successfully able to depend on.