cargo-program

Crates.iocargo-program
lib.rscargo-program
version0.0.4
sourcesrc
created_at2021-07-18 09:19:09.794563
updated_at2021-12-08 06:35:50.395419
descriptionUtility to simplify Gear programs development
homepage
repositoryhttps://github.com/gear-tech/cargo-program
max_upload_size
id424342
size83,230
Dmitrii Novikov (breathx)

documentation

README

cargo-program

CI Status License crates.io

Utility to simplify Gear programs development.

⚠️ The project is currently under active development. Some features may be unstable.

Install

  • (recommended) Latest version from the repo:
cargo install --git https://github.com/gear-tech/cargo-program.git
cargo install cargo-program

Usage

Create a new Gear program

cargo program new my-program

Create a new async Gear program

cargo program new my-async-program --async

Build the Gear program

cargo program build

🚧 (in progress) Run the Gear program off-chain (default)

cargo program run

🚧 (in progress) Run the Gear program on-chain using local node

cargo program run --node
# or
cargo program run --node 127.0.0.1:9933

🚧 (in progress) Run tests

cargo program test

🚧 (in progress) Login to the Gear backend

cargo program login
# or
cargo program login --host https://my-gear-backend.tld:8123

🚧 (in progress) Publish the Gear program to the chain

cargo program publish

License

cargo-program is licensed under GPL v3.0 with a classpath linking exception.

Commit count: 49

cargo fmt