This project is designed for two things:
rust
directory. Currently implemented is building for apple platforms as an xcframework
and for distribution via Swift Package Manager.
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")
],
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
.
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.
Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT).