pinoc-0.1.0 is not a library.
About
Pinoc is a command-line tool designed to make it easy to set up and manage Pinocchio projects on Solana. It automates common development tasks including project initialization, building, testing, and deployment with simple commands.
Features
- 🚀 Fast project scaffolding with best practices
- 📁 Proper directory structure for Solana/Pinocchio development
- 🔨 Simple build, test, and deployment commands
- 💻 Comprehensive testing environment setup
Installation
From crates.io (Recommended)
From GitHub
From Source
-
Clone the repository
-
Build the tool
-
Install globally
Usage
Available Commands
# Initialize a new project
# Build your project
# Run tests
# Deploy your program
# Get help
Example
Create a new Pinocchio project and get started:
# Create a new project
# Navigate to your project
# Build your project
# Run tests
Project Structure
When you initialize a project with pinoc init, it creates the following structure:
my-project/
├── Cargo.toml
├── src/
│ ├── lib.rs # Library crate using no_std
│ ├── entrypoint.rs # Program entrypoint
│ ├── errors.rs # Error definitions
│ ├── instructions/ # Program instructions
│ │ ├── mod.rs
│ │ ├── deposit.rs
│ │ └── withdraw.rs
│ └── states/ # Account state definitions
│ ├── mod.rs
│ └── utils.rs
└── tests/ # Test files
└── tests.rs
Contributing
Contributions are welcome! Here's how you can contribute:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests to ensure everything works
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Setup
- Ensure you have Rust and Cargo installed
- Install Solana CLI tools
- Clone the repository
- Build with
cargo build --release - To install too
cargo install --path .