Contracts written using Soroban
cargo test
cargo test -- --nocapture
cargo build --target wasm32-unknown-unknown --release
-
All Rust code is linted with Clippy with the command
cargo clippy
. If preferred to ignore its advice, do so explicitly:#[allow(clippy::too_many_arguments)]
-
All rust code is formatted with
cargo fmt
. rustfmt.toml defines the expected format. -
Function and local variable names follow snake_case. Structs or Enums follow CamelCase and Constants have all capital letters.