Cargo extension for building near-sdk-rs smart contracts and ABI schemas on NEAR
To build a NEAR smart contract (while in the directory containing contract's Cargo.toml):
console
$ cargo near build
To generate an ABI for a contract (while in the directory containing contract's Cargo.toml):
console
$ cargo near abi
See cargo near --help
for a complete list of options.
From crates.io:
console
$ cargo install cargo-near
To install from source:
console
$ git clone https://github.com/near/cargo-near
$ cargo install --path cargo-near
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.
Licensed under either of
at your option.