Skip to content

paritytech/cargo-pvm-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo-pvm-contract

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.

Installation

cargo install --force --locked cargo-pvm-contract

Usage

Once installed, you can use it as a cargo subcommand:

cargo pvm-contract

This 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.

About

Build commands for Rust PVM contracts

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •