| Name | Type | Environment |
|---|---|---|
| Devnet | Public devnet | For development |
| Testnet | Public testnet | For last testing |
| Mainnet | Production | For production |
Format the code:
cargo fmtLint:
cargo clippyLint (with warnings):
cargo clippy --all-targetscargo make lint-allCreate your .env.testing file:
cp .env.testing.example .env.testingRun the tests :
cargo testRun tests by capturing and displaying output :
cargo test -- --nocaptureCompile (if necessary) and immediately execute the program:
cargo run <arguments>Compile a debug version:
cargo buildThis command will create the compiled file:
target/debug/rust_solana_wallet
Compile a release version for production:
cargo build --releaseThis 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 .
envfile, 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