https://github.com/cormacrelf/citeprocrskit
Swift bindings for zotero/citeproc-rs
https://github.com/cormacrelf/citeprocrskit
citation-style-language citeproc ffi swift
Last synced: about 1 month ago
JSON representation
Swift bindings for zotero/citeproc-rs
- Host: GitHub
- URL: https://github.com/cormacrelf/citeprocrskit
- Owner: cormacrelf
- Created: 2021-03-22T01:45:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T09:15:12.000Z (almost 5 years ago)
- Last Synced: 2025-03-01T05:27:40.525Z (over 1 year ago)
- Topics: citation-style-language, citeproc, ffi, swift
- Language: Swift
- Homepage: https://citeprocrskit.cormacrelf.net/documentation/CiteprocRsKit
- Size: 587 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CiteprocRsKit
A set of Swift bindings for
[`citeproc-rs`](https://github.com/zotero/citeproc-rs).
This is a SwiftPM package that has a dependency on a pre-built copy of
`citeproc-rs`' FFI library. Some bug fixes may occur only in the FFI library,
of which new versions can be pulled with `swift package update`. See the
[citeproc-rs/ffi-xcframework releases][xcf-releases] for news.
[xcf-releases]: https://github.com/citeproc-rs/ffi-xcframework/releases
## Installation
### Via Xcode
Open up your project's settings page, look under the 'Swift Packages' tab and
add this GitHub repo as a dependency.
### Via Package.swift
For Package.swift, add as below. Follow the docs [here][v1] and [here][v2] for version requirements.
[v1]: https://github.com/apple/swift-package-manager/blob/main/Documentation/PackageDescription.md#package-dependency
[v2]: https://github.com/apple/swift-package-manager/blob/main/Documentation/PackageDescription.md#package-dependency-requirement
```swift
// Package.swift
// ...
dependencies: [
// exact version best for sub-1.0.0 releases as SwiftPM doesn't consider an
// 0.x to 0.x+1 change a "major version" despite Semver
.package(url: "https://github.com/cormacrelf/CiteprocRsKit", .exact("0.4.0")),
],
targets: [
// and add it as a dependency to a target in your own project
.target(name: "MyApp", dependencies: ["CiteprocRsKit"])
]
```