Brendonovich / swift-rs

Call Swift functions from Rust with ease!
Apache License 2.0
253 stars 30 forks source link

Remove Swift Runtime Compatability Version String #12

Closed haydenstith closed 1 year ago

haydenstith commented 1 year ago

The version of Swift running on my M1 MacBook Pro does not output a runtime compatibility version string which causes the unwrap to fail in the build script. This small change should fix the issue but I am not sure how it will act on other systems so further testing is certainly required. Also removed native and static declarations as those also caused issues with my system.

Output of swift -version on my system swift-driver version: 1.26.9 Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6) Target: arm64-apple-macosx12.0

Brendonovich commented 1 year ago

Glad we could get this sorted, I got scared seeing that swift-rs wasn't working in dependency crates 😅