Name | Type | Environment |
---|---|---|
Devnet | Public devnet | For development |
Testnet | Public testnet | For last testing |
Mainnet | Production | For production |
Format the code:
cargo fmt
Lint:
cargo clippy
Lint (with warnings):
cargo clippy --all-targets
cargo make lint-all
Create your .env.testing
file:
cp .env.testing.example .env.testing
Run the tests :
cargo test
Run tests by capturing and displaying output :
cargo test -- --nocapture
Compile (if necessary) and immediately execute the program:
cargo run <arguments>
Compile a debug version:
cargo build
This command will create the compiled file:
target/debug/rust_solana_wallet
Compile a release version for production:
cargo build --release
This command will create the compiled file:
target/release/rust_solana_wallet
This example demonstrates how to create a compiled version and use it on your Linux Desktop.
- Navigate to the project directory:
cd /<your-path>/rust-solana-wallet
- Compile to create a release:
cargo build --release
- Copy the release file to your Desktop:
cp ./target/release/rust_solana_wallet ~/Desktop
- Configure your .
env
file, then copy it to your Desktop:
cp ./.env ~/Desktop
- Navigate to your Desktop:
cd ~/Desktop
- Now you can use the Wallet release. For example, to generate a seed:
./rust_solana_wallet generate_seed