OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Solana Pinocchio Examples

Solana Pinocchio Examples is a public repository of Rust examples for creating Solana programs with Pinocchio, a lightweight library that avoids the solana-program crate and uses zero-copy types to read program input data.

Independent OpenViST project profile, based on linked sources.

Solana Pinocchio Examples — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Create a Rust library project with Cargo using the documented 2021 edition.

  2. Change into the project directory.

  3. 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.
Evidence and transparency

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