Release notes and unreleased changes can be found in the CHANGELOG
From crates.io:
$ cargo install cargo-near
To install from source:
$ git clone https://github.com/near/cargo-near
$ cargo install --path cargo-near
See cargo near --help
for a complete list of available commands. Help is also available for each individual command with a --help
flag, e.g. cargo near build --help
.
cargo near build
Builds a NEAR smart contract along with its ABI (while in the directory containing contract's Cargo.toml).
You can also make this command embed ABI into your WASM artifact by adding --embed-abi
parameter. Once deployed, this will allow you to call a view function __contract_abi
to retrieve a ZST-compressed ABI.
cargo near abi
Generates NEAR smart contract's ABI (while in the directory containing contract's Cargo.toml).
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.