Skip to main content

Rust API

Rust crates are published to crates.io and can be found on docs.rs with the "solana-" prefix.

Some important crates:

  • solana-program โ€” Imported by programs running on Renec, compiled to BPF. This crate contains many fundamental data types and is re-exported from solana-sdk, which cannot be imported from a Renec program.

  • solana-sdk โ€” The basic off-chain SDK, it re-exports solana-program and adds more APIs on top of that. Most Renec programs that do not run on-chain will import this.

  • solana-client โ€” For interacting with a Renec node via the JSON RPC API.

  • renec-cli-config โ€” Loading and saving the Renec CLI configuration file.

  • solana-clap-utils โ€” Routines for setting up a CLI, using clap, as used by the main Renec CLI.