| Crates.io | solana-spinup |
| lib.rs | solana-spinup |
| version | 0.2.0 |
| created_at | 2025-05-08 10:15:26.33193+00 |
| updated_at | 2025-05-08 10:41:06.74718+00 |
| description | A spinup tool that scaffolds a solana project alongside its base dependencies |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1665098 |
| size | 19,114 |
This installable binary helps to scaffold a new solana/web3 project using rust and typescript.
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:
├── 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>
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.