A cargo subcommand to build Rust contracts to PolkaVM bytecode.
This tool is designed for building smart contracts in Rust using the low-level API provided by pallet-revive-uapi. For a more high-level, user-friendly API, see Ink!.
To learn more, visit the Rust Contract Template.
cargo install --force --locked cargo-pvm-contractOnce installed, you can use it as a cargo subcommand:
cargo pvm-contractThis launches an interactive prompt to initialize a new contract project.
Examples:
Initialize a new project with cargo pvm-contract and build it with cargo build:
The PolkaVM bytecode will be written to target/<bin>.<profile>.polkavm.