Skip to content

Latest commit

 

History

History
133 lines (80 loc) · 1.81 KB

Notes-tech.md

File metadata and controls

133 lines (80 loc) · 1.81 KB

Networks

Name Type Environment
Devnet Public devnet For development
Testnet Public testnet For last testing
Mainnet Production For production

Lint

Format the code:

cargo fmt

Lint:

cargo clippy

Lint (with warnings):

cargo clippy --all-targets

With Makefile.toml :

cargo make lint-all

Run tests

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

Run / Build / Release

Run:

Compile (if necessary) and immediately execute the program:

cargo run <arguments>

Build - Debug:

Compile a debug version:

cargo build

This command will create the compiled file: target/debug/rust_solana_wallet

Build - Release:

Compile a release version for production:

cargo build --release

This command will create the compiled file: target/release/rust_solana_wallet

Using the Release

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