Swiftpack.co - cormacrelf/CiteprocRsKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by cormacrelf.
cormacrelf/CiteprocRsKit v0.4.0
Swift bindings for zotero/citeproc-rs
⭐️ 1
🕓 2 years ago
iOS macOS
.package(url: "https://github.com/cormacrelf/CiteprocRsKit.git", from: "v0.4.0")

CiteprocRsKit

A set of Swift bindings for 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 for news.

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 and here for version requirements.

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

GitHub

link
Stars: 1
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v0.4.0
2 years ago

SwiftPM + JSON

This release changes the distribution from entirely xcframework-driven, to mostly SwiftPM.

Merged PRs:

  • #6 SwiftPM support. Now you should depend directly on this repo from your Package.swift or via Xcode. See the README for how.
  • #7 Supports constructing a CslReference programatically, and also passing pre-encoded JSON references directly to citeproc-rs.

Issues fixed

  • #4 is no longer problem because SwiftPM downloads + compiles the Swift code from scratch when you add the package.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics