Practical overview
When it fits
Use it when you need a concrete Rust example for a Solana program task or want to start a Pinocchio project. The README lists Rust, Cargo and Solana CLI tools as prerequisites.
Who it is for
- Rust developers learning or building Solana programs with Pinocchio.
- Solana developers looking for examples of account, token, Token Extension or compressed-NFT operations.
Documented uses
- Find an example for account creation, state storage, instruction processing or cross-program invocation.
- Study program patterns for token creation, minting, transfers and swaps.
- Explore Token Extension examples, including transfer fees, metadata and CPI guard.
- Review examples for working with compressed NFTs.
Requirements & limits
The repository is public and identified as open source; its README states that it is licensed under the MIT License.
- Pinocchio examples avoid depending on the solana-program crate.
- The repository groups examples across basics, tokens, Token Extensions and compressed-NFT operations.
- Basic Solana program-development knowledge is listed as a prerequisite.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up a new Pinocchio program
Create a Rust library project and add the Pinocchio crate.
Before you start
- Rust and Cargo
- Solana CLI tools
Steps
Create a Rust library project with Cargo using the documented 2021 edition.
Change into the project directory.
Add the Pinocchio crate with Cargo.
Expected outcome
A new Rust library project with Pinocchio added as a dependency, ready for program development.
Guide limitations
- The steps cover setup only, not writing, building, testing or deploying a program.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- HongThaiPham/solana-pinocchio-examples · Official homepage title · retained in its source language

