SDK
Core Candy Machine Rust SDK
Last updated March 10, 2026
Summary
The Core Candy Machine Rust SDK provides two crates for interacting with Candy Machines on Solana: mpl-core-candy-machine-core for machine initialization and management, and mpl-core-candy-guard for creating and configuring guards.
- Install via Cargo with
cargo add mpl-core-candy-machine-coreandcargo add mpl-core-candy-guard - Usable in scripts, desktop applications, mobile applications, and Solana onchain programs
- The Core crate handles Candy Machine creation, configuration, and asset loading
- The Guard crate handles guard creation and wrapping guards over a Candy Machine
Core Candy Machine Rust Crate
The mpl-core-candy-machine-core crate is the core component of the Core Candy Machine program, providing initialization and management of Candy Machines on Solana.
Installation
The mpl-core-candy-machine-core Rust crate can be used in both scripts/desktop/mobile applications as well as with Solana onchain programs.
cargo add mpl-core-candy-machine-core
crates.io
Get started with our Rust SDK for MPL Core Candy Machine.
docs.rs
The Rust SDK typedoc platform for Core Candy Machine crate.
Core Candy Guard Rust Crate
The mpl-core-candy-guard crate enables creating and managing Core Candy Guards that can be wrapped over a Core Candy Machine to enforce minting conditions.
Installation
The mpl-core-candy-guard Rust crate can be used in both scripts/desktop/mobile applications as well as with Solana onchain programs.
cargo add mpl-core-candy-guard
crates.io
Get started with our Rust SDK for Core Candy Guards.
docs.rs
The Rust SDK typedoc platform for Core Candy Guards crate.
Notes
- Both crates can be used for onchain program development (CPI calls) and for off-chain client scripts.
- The
mpl-core-candy-machine-coreandmpl-core-candy-guardcrates are separate packages. Install both if you need full Candy Machine and guard functionality. - Refer to the docs.rs documentation for detailed type and function signatures.
