Skip to content

Webrowse/solana-fullstack-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Solana Fullstack Rust

This is a fullstack Solana project in Rust:
A raw on-chain smart contract (solana-raw) and its CLI client (solana-vault-client), combined via Git submodules.

Structure

solana-fullstack-rust/
β”œβ”€β”€ client/             # CLI client repo (submodule)
β”‚   └── src/main.rs     # Interacts with the deployed program
β”œβ”€β”€ on-chain/           # On-chain Solana program (submodule)
β”‚   └── program/        # Rust-based Solana smart contract
β”œβ”€β”€ .gitmodules         # Git submodule tracking
└── README.md

Included Repos (Submodules)

Setup Instructions

1. Clone with Submodules

git clone --recurse-submodules https://github.com/Webrowse/solana-fullstack-rust.git
cd solana-fullstack-rust

If already cloned without submodules:

git submodule update --init --recursive

2. Build the On-Chain Program

cd on-chain/program
cargo build-bpf

3. Deploy to Devnet

solana config set --url devnet
solana program deploy <path_to_solana_raw.so>

Note the program ID from this output.

4. Configure Client

In client/src/main.rs, update:

let program_id = Pubkey::from_str("YourProgramIDHere").unwrap();

Or load from a .json file if structured that way.

5. Run the Client

cd client
cargo run

Requirements

  • Rust + Cargo
  • Solana CLI
  • Git 2.11+ (for submodules)
  • BPF SDK (for on-chain build)

πŸ“„ License

MIT

About

Pure Rust Solana program with a custom CLI frontend built entirely without Anchor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published