Skip to content

KIMQI001/filecoin-ffi

 
 

Repository files navigation

Filecoin Proofs FFI

C and CGO bindings for Filecoin's Rust libraries

Building

To build and install libfilecoin, its header file and pkg-config manifest, run:

make

If no precompiled static library is available for your operating system, the build tooling will attempt to compile a static library from local Rust sources.

Forcing Local Build

To opt out of downloading precompiled assets, set FFI_BUILD_FROM_SOURCE=1:

FFI_BUILD_FROM_SOURCE=1 make clean all

Updating CGO Bindings

The 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.

License

MIT or Apache 2.0

About

C and CGO bindings for Filecoin's Rust libraries

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 68.4%
  • Rust 29.1%
  • Shell 2.2%
  • Other 0.3%