solana-spinup

Crates.iosolana-spinup
lib.rssolana-spinup
version0.2.0
created_at2025-05-08 10:15:26.33193+00
updated_at2025-05-08 10:41:06.74718+00
descriptionA spinup tool that scaffolds a solana project alongside its base dependencies
homepage
repository
max_upload_size
id1665098
size19,114
Olaleye Fuad (thefuadeniola)

documentation

README

Solana spinup

This installable binary helps to scaffold a new solana/web3 project using rust and typescript.

Installatiion

In the directory where you want your solana projects:

cargo install solana-spinup

To spinup a new project:

solana-spinup new <PROJECT_NAME>

This spins up a new project with the sample file structure:

file structure

├── program
| ├── cargo.toml
| └── src
|  └── lib.rs
├── client
| └── main.ts
└── package.json

It initializes and adds necessary dependencies including bosrh, mz, etc. Since you can have multiple rust programs inside one solana project, to add another program to our project: Inside the project directory you have created

solana-spinup add <NEW_PROGRAM_NAME>

Scripts

This binary initializes the project with scripts to semi automate build, deployment and running the project. By combining npm and cargo commands into 1.

To compile the rust programs and place the executables inside a ./dist/program,

npm run build

To deploy the compiled .so rust files to the blockchain:

npm run deploy

To see a full list of executables such as npm run reset and build and npm run clean, check out this package.json and cicd files.

Commit count: 0

cargo fmt