C and CGO bindings for Filecoin's Rust libraries
To build and install libfilecoin, its header file and pkg-config manifest, run:
makeIf no precompiled static library is available for your operating system, the build tooling will attempt to compile a static library from local Rust sources.
To opt out of downloading precompiled assets, set FFI_BUILD_FROM_SOURCE=1:
FFI_BUILD_FROM_SOURCE=1 make clean allThe CGO bindings are generated using c-for-go
and committed to Git. To generate bindings yourself, install the c-for-go
binary, ensure that it's on your path, and then run make cgo-gen. CI builds
will fail if generated CGO diverges from what's checked into Git.
MIT or Apache 2.0