Introduce importability as a Swift package (C library).#790
Introduce importability as a Swift package (C library).#790kanru merged 9 commits intochewing:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #790 +/- ##
=======================================
Coverage 92.06% 92.06%
=======================================
Files 37 37
Lines 9253 9253
=======================================
Hits 8519 8519
Misses 734 734 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks for the contribution! I'm not familiar with Swift. Is it possible to put everything related to Swift under the It would be good to run the tests in the CI. |
@kanru I'm afraid that the Other files are relocateable. |
I'll give it a try. |
|
to the following (or whatever better to you): |

This allows macOS IME developers to simply import LibChewing as a Swift Package.
The added Swift Unit Test files are only for making sure that C APIs are accessible from Swift.
On macOS, as long as libchewing is compilable using cargo, one can always run
swift teststo build and run Swift package on macOS with Xcode 26 installed (or standalone Swift 6.1+ installation). Earlier Xcode is okay as long as its shipped Swift is 6.1+.