Go to file
Jack Grigg 5ef4c6509b
Merge pull request #186 from Electric-Coin-Company/ci-zizmor
CI: Add workflow that runs zizmor latest
2025-01-11 17:28:20 +00:00
.github/workflows CI: Fix workflow issues 2025-01-09 20:26:13 +00:00
releases/XCFramework/libzcashlc.xcframework
rust `bindgen 0.71` 2025-01-09 23:49:25 +00:00
support
.gitignore
CHANGELOG.md Merge pull request #185 from Electric-Coin-Company/changelog-missing-0.12.0-entries 2025-01-10 17:22:57 -07:00
CONTRIBUTING.md
LICENSE
Makefile
Package.swift
README.md

README.md

zcash-light-client-ffi

This project is designed for two things:

  1. Provide language bindings for the zcash rust library, in the rust directory.
  2. Packaging for common dependency managers within those language eco systems.

Currently implemented is building for apple platforms as an xcframework and for distribution via Swift Package Manager.

importing the package

Add the package as a dependency

dependencies: [
  .package(url: "https://github.com/Electric-Coin-Company/zcash-light-client-ffi", from: "0.1.2")
  // other dependencies
]

and reference it as product in the target that it will be used

targets: [
        .target(
            name: "MyTarget",
            dependencies: [
                .product(name: "libzcashlc", package: "zcash-light-client-ffi")
            ],

Building

Pre-requisites

Most of the building is done with the rust compiler, and depending on the target will need different toolchains. To install these you will need to install rustup. Once this is installed, the rest of the dependencies can be installed by running make install.

XCFramework

Currently the only build product that is supported. This can be built with make xcframework and the result will be in releases/XCFramework/libzcashlc.xcframework.

Depending on what state the intermediate build products might be in, you may first want to do make clean to do a clean build.

Releasing

Swift Package Manager

  1. Build the framework as described above.
  2. Commit the result.
  3. Tag this commit with the new release version, (following semantic versioning).
  4. Push the commit and tag to the remote repository.

License

Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT).