An open API service indexing awesome lists of open source software.

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

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"])
]
```