Skip to content

Releases: near/cargo-near

0.6.1 - 2024-02-23

23 Feb 01:35
5839bd3
Compare
Choose a tag to compare

Release Notes

Other

  • Updated near-sdk-rs to version 5.0.0 for the new projects (#132)

Install cargo-near 0.6.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.1/cargo-near-installer.sh | sh

Install prebuilt binaries via powershell script

irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.1/cargo-near-installer.ps1 | iex

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.6.1

File Platform Checksum
cargo-near-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
cargo-near-x86_64-apple-darwin.tar.gz Intel macOS checksum
cargo-near-x86_64-pc-windows-msvc.tar.gz x64 Windows checksum
cargo-near-x86_64-pc-windows-msvc.msi x64 Windows checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.6.0 - 2024-02-03

03 Feb 22:09
0859150
Compare
Choose a tag to compare

Release Notes

Added

  • Use hello-world contract instead of the status-message contract for the new project starter
  • Enable by default release mode, embedded ABIs with doc strings

Install cargo-near 0.6.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.0/cargo-near-installer.sh | sh

Install prebuilt binaries via powershell script

irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.0/cargo-near-installer.ps1 | iex

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.6.0

File Platform Checksum
cargo-near-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
cargo-near-x86_64-apple-darwin.tar.gz Intel macOS checksum
cargo-near-x86_64-pc-windows-msvc.tar.gz x64 Windows checksum
cargo-near-x86_64-pc-windows-msvc.msi x64 Windows checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.5.2 - 2024-01-27

27 Jan 18:06
48c7b48
Compare
Choose a tag to compare

Release Notes

Other

  • Updated "feature flag" for near-cli-rs (ledger) (#126)
  • Updated near-sdk-rs to 5.0.0-alpha.2 in the new project template (#127)

Install cargo-near 0.5.2

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.5.2/cargo-near-installer.sh | sh

Install prebuilt binaries via powershell script

irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.5.2/cargo-near-installer.ps1 | iex

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.5.2

File Platform Checksum
cargo-near-aarch64-apple-darwin.tar.gz macOS Apple Silicon checksum
cargo-near-x86_64-apple-darwin.tar.gz macOS Intel checksum
cargo-near-x86_64-pc-windows-msvc.tar.gz Windows x64 checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz Linux x64 checksum
cargo-near-x86_64-pc-windows-msvc.msi Windows x64 checksum

0.5.1 - 2024-01-25

25 Jan 13:52
e9ce6eb
Compare
Choose a tag to compare

Release Notes

Other

  • Upgraded NEAR crates to 0.20.0 release (#125)
  • Updated binary releases pipeline to use cargo-dist v0.7.2 (previously v0.3.0) (#122)

Install cargo-near 0.5.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.5.1/cargo-near-installer.sh | sh

Install prebuilt binaries via powershell script

irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.5.1/cargo-near-installer.ps1 | iex

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.5.1

File Platform Checksum
cargo-near-aarch64-apple-darwin.tar.gz macOS Apple Silicon checksum
cargo-near-x86_64-apple-darwin.tar.gz macOS Intel checksum
cargo-near-x86_64-pc-windows-msvc.tar.gz Windows x64 checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz Linux x64 checksum
cargo-near-x86_64-pc-windows-msvc.msi Windows x64 checksum

0.5.0 - 2023-11-20

24 Nov 17:35
8cbb09f
Compare
Choose a tag to compare

Release Notes

Added

  • New command to initialize a new smart contract project (#117)

Other

  • update near-sdk, near-abi, borsh version (#109)

Install cargo-near 0.5.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.5.0/cargo-near-installer.sh | sh

Install prebuilt binaries via powershell script

irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.5.0/cargo-near-installer.ps1 | iex

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.5.0

File Platform Checksum
cargo-near-aarch64-apple-darwin.tar.gz macOS Apple Silicon checksum
cargo-near-x86_64-apple-darwin.tar.gz macOS Intel checksum
cargo-near-x86_64-pc-windows-msvc.tar.gz Windows x64 checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz Linux x64 checksum
cargo-near-x86_64-pc-windows-msvc.msi Windows x64 checksum

0.4.1 - 2023-10-19

19 Oct 14:15
3037df3
Compare
Choose a tag to compare

Release Notes

Added

  • New command - deploy (#113)
  • New command - create-dev-account (#108)

Fixed

  • cargo near build now works on Windows (#110)

Other

  • remove #[ignore] from parts of test suite, using near-workspaces (#111)

Install cargo-near 0.4.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.4.1/cargo-near-installer.sh | sh

Install prebuilt binaries via powershell script

irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.4.1/cargo-near-installer.ps1 | iex

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.4.1

File Platform Checksum
cargo-near-aarch64-apple-darwin.tar.gz macOS Apple Silicon checksum
cargo-near-x86_64-apple-darwin.tar.gz macOS Intel checksum
cargo-near-x86_64-pc-windows-msvc.tar.gz Windows x64 checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz Linux x64 checksum
cargo-near-x86_64-pc-windows-msvc.msi Windows x64 checksum

0.4.0 - 2023-10-01

02 Oct 15:57
7b1002d
Compare
Choose a tag to compare

Release Notes

Other

  • [breaking] Re-implemented cargo-near to use interactive-clap and near-cli-rs features (#103)

Install cargo-near 0.4.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.4.0/cargo-near-installer.sh | sh

Install prebuilt binaries via powershell script

irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.4.0/cargo-near-installer.ps1 | iex

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.4.0

File Platform Checksum
cargo-near-aarch64-apple-darwin.tar.gz macOS Apple Silicon checksum
cargo-near-x86_64-apple-darwin.tar.gz macOS Intel checksum
cargo-near-x86_64-pc-windows-msvc.tar.gz Windows x64 checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz Linux x64 checksum
cargo-near-x86_64-pc-windows-msvc.msi Windows x64 checksum

v0.3.1

23 Jun 18:02
8040fad
Compare
Choose a tag to compare

What's changed?

  • Exposed build and abi modules to make them reusable when cargo-near is used as a crate. #97

Crate Link: https://crates.io/crates/cargo-near/0.3.1

Full Changelog: v0.3.0...v0.3.1

🎉 Thanks to @frol and @ghimire007 for their contributions to this release. 🎉

Verify the SHA256 checksums of the release artifacts
File Hash
cargo-near-v0.3.1-aarch64-apple-darwin.tar.gz bb2c0b221e3d2f8e384e0b794be6e3c85804362fe4cb01cf0db6ba22b871f739
cargo-near-v0.3.1-aarch64-pc-windows-msvc.zip ffc525ac6a205c4ce3d73a915784e2ad117f5cb53c006bff9d37e14397e5de3a
cargo-near-v0.3.1-aarch64-unknown-linux-gnu.tar.gz 76679b2f60d8169ec6672c6290451d12ecf1c63ed0969b8020bff8326ac869bf
cargo-near-v0.3.1-aarch64-unknown-linux-musl.tar.gz 245c6b164dbd2f4e359e38e704a17e9da10ec3e3579c17835fda72c59c2ee608
cargo-near-v0.3.1-x86_64-apple-darwin.tar.gz 8ee6876821ae2055c562773898a8352768d20c984a50c8f7f879d0cd8690f618
cargo-near-v0.3.1-x86_64-pc-windows-gnu.zip dac52e374b0edfd5efd7d5f06f4ec7384b81c8ab302e83eca954875904773dc7
cargo-near-v0.3.1-x86_64-pc-windows-msvc.zip 7615c58b993d48002ac037867399a36811becd9c2489f5300022664dcbf55098
cargo-near-v0.3.1-x86_64-unknown-linux-gnu.tar.gz 6b81f1effa4906fde21fe1a9f1de07f08f7e473246aa146e1878d9a7f85a0b83
cargo-near-v0.3.1-x86_64-unknown-linux-musl.tar.gz 91cd9449290ebdbf611ceef0cabf4501b7bd448dc8aad14e1ff5cf072f51f38c

v0.3.0

10 Nov 14:00
b3a245f
Compare
Choose a tag to compare

What's changed?

Highlight: We revised the overall experience of the CLI, making it more accessible, robust, and easier to understand.

  • The minimum supported version of the SDK for this release is 4.1.0.
  • Upgraded the near-abi version to 0.3.0. #83
  • The exported and embedded ABI now includes build information. #55
  • When building a contract, the exported ABI now also includes the code hash of the built contract. #55
  • Fixed a situation where cargo-near could potentially run into segfaults when working with incompatible versions of the SDK. #74
  • cargo-near now only accepts valid UTF-8 input from the CLI, and will error out if it encounters invalid UTF-8. #76
  • cargo-near no longer requires explicitly activating the abi feature for the SDK. #85
  • Fixed a bug where cargo-near exports an empty ABI file when the target directory is explicitly specified. #75
  • Introduced build stages with a neat report interface. #59, #63, #69
  • Added the --color flag to control the color output. #86
  • Ensured all forwarded cargo output retains colors in it's report, maintaining tooling familiarity. #66
  • Removed the buffering that made cargo's stdout lag behind its stderr. #65
  • When building contracts, cargo's warnings are only emitted at the build stage, and not duplicated. #68

Crate Link: https://crates.io/crates/cargo-near/0.3.0

Full Changelog: v0.2.0...v0.3.0

🎉 Thanks to @itegulov and @miraclx for their contributions to this release. 🎉

Verify the SHA256 checksums of the release artifacts
File Hash
cargo-near-v0.3.0-aarch64-apple-darwin.tar.gz edb2964c2a042e8eb97744041d982bacfe6a56debf20bd4ff8a3c12a24c788ba
cargo-near-v0.3.0-aarch64-pc-windows-msvc.zip 5380d5d312f3dd7633f1855f103ef701b1bae0e170c18b3cd30b749add5d42cf
cargo-near-v0.3.0-aarch64-unknown-linux-gnu.tar.gz c425bda3f504ec09d5dff71b0313226ec3b8f509d869840fcf8e0d382070f8b1
cargo-near-v0.3.0-aarch64-unknown-linux-musl.tar.gz d5cdb40f52a718aa341e5b11a914c92c0463864ed4cef9d1ef8f049e7081c8a5
cargo-near-v0.3.0-x86_64-apple-darwin.tar.gz 2f1ba0db87442028d0593b9561ec0f504ac62b3dcdcf8500e6ef79767b5e89fe
cargo-near-v0.3.0-x86_64-pc-windows-gnu.zip 9a382cea4be951fbee0352b75447b7b9ecdb55e6b7770b75596d4dfa62c9c3f1
cargo-near-v0.3.0-x86_64-pc-windows-msvc.zip 39e81df440bd7bd1a4091723c9497d0cecf35fe5a982978b30ca51955fb8858d
cargo-near-v0.3.0-x86_64-unknown-linux-gnu.tar.gz a2537d41921c0db2caeca155cc789a1b48ce1770183eb79f986c8566948bb4bd
cargo-near-v0.3.0-x86_64-unknown-linux-musl.tar.gz db34d3b304a616c7954b85947d15fdfe9c73a63d7fe9d46178cf71489e12a5d3

Initial Release: v0.2.0

01 Sep 08:35
219c10b
Compare
Choose a tag to compare

Crate Link: https://crates.io/crates/cargo-near/0.2.0

Full Changelog: https://github.com/near/cargo-near/commits/v0.2.0

cargo-near

Cargo extension for building near-sdk-rs smart contracts and ABI schemas on NEAR

Usage

To build a NEAR smart contract (while in the directory containing contract's Cargo.toml):

$ cargo near build

To generate an ABI for a contract (while in the directory containing contract's Cargo.toml):

$ cargo near abi

See cargo near --help for a complete list of options.

Installation

From crates.io:

$ cargo install cargo-near

To install from source:

$ git clone https://github.com/near/cargo-near
$ cargo install --path cargo-near