Add swift-yyjson project to README #244
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, @ibireme. Thank you for your work on yyjson!
I recently learned about your project from a PR by @DePasqualeOrg to swift-transformers (huggingface/swift-transformers#304). That led me to creating a Swift package to wrapping it here: https://github.com/mattt/swift-yyjson
In contrast to the other Swift projects already mentioned in the README, this package provides API-compatible replacements for standard Swift APIs, and uses package trait equivalents for compile-time optimizations. 1
Hoping to add benchmarks and more comprehensive testing soon. But wanted to share this with you to get your thoughts and give it more visibility to anyone else who's using yyjson in their apps.
Footnotes
Currently,
swift-yyjsonvendors C code instead of declaring yyjson as a dependency. While that is possible because yyjson contains a root-levelPackage.swiftfile (add swift package manager support #11), that package manifest file doesn't include traits that allow for compile-time options. Let me know if you'd be interested in a PR implementing that! (It should be possible without impacting existing compatibility) ↩