This is a quick guide to help you contribute to the Rust client of Mpl Inscription.
To build and test the Rust client, you can use cargo
.
# Build the client
cargo build
# Test the client (requires building the program first)
cargo test-sbf --sbf-out-dir ../../programs/.bin
When something changes in the program(s), make sure to run pnpm generate
in the root directory, to re-generate the clients accordingly.
You can publish a new version of the Rust client crate by manually dispatching the "Publish Rust Client" workflow in the GitHub Actions tab of the repository.
For this to work, some initial setup is required on the repository as explained below.
To publish Rust clients using GitHub actions, we first need the following secret variable to be set up on the repository.
CRATES_TOKEN
— An access token that can publish your packages to crates.io.