Skip to content

Solana Rust 合约

Make sure you have the latest version of the Solana CLI:

bash
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
cargo add solana-program
cargo build-sbf
solana program deploy target/deploy/sol_program.so
solana logs ABwT5tGgkAvYAhhtcduwDAKsnSdXk3UskjG28Lu7Qzin

lock file version 4 requires -Znext-lockfile-bump

Cargo.lockversion = 4 改为 version = 3