solana/sdk-c
TristanDebrunner 6b86f85916
Add C API (#5072)
2019-07-15 13:17:17 -06:00
..
src Add C API (#5072) 2019-07-15 13:17:17 -06:00
.gitignore Add C API (#5072) 2019-07-15 13:17:17 -06:00
Cargo.toml Add C API (#5072) 2019-07-15 13:17:17 -06:00
README.md Add C API (#5072) 2019-07-15 13:17:17 -06:00
build.rs Add C API (#5072) 2019-07-15 13:17:17 -06:00
cbindgen.toml Add C API (#5072) 2019-07-15 13:17:17 -06:00

README.md

Solana SDK-C

This crate exposes a C API to Solana functions written in Rust. The crate generates a static library, and uses cbindgen to generate a header file during the build. To generate both:

$ cd <path/to/solana/repo>/sdk-c
$ cargo build

This will generate the static library in <path/to/solana/repo>/target/deps and the header file in <path/to/solana/repo>/sdk-c/include.