Skip to content

Releases: near/cargo-near

0.13.2 - 2024-12-19

19 Dec 23:47
7dc8b58
Compare
Choose a tag to compare

Release Notes

Other

  • near-* crates to 0.28 (#279)
  • update cargo near new template image and image_digest (#273)

sourcescan/cargo-near compatibility note

  1. With 0.13.0 release for build reproducible-wasm / deploy build-reproducible-wasm commands cargo near does no longer support passing through additional flags from host command to command run inside docker container, when container_build_command is omitted from [package.metadata.near.reproducible_build] in contract's manifest.
    container_build_command is now considered a mandatory field instead of optional.

  2. when updating image and image_digest in a contract's manifest to values of sourcescan/cargo-near:0.13.0-rust-1.83.0 or a newer image,
    one should also update the base command from:

container_build_command = ["cargo", "near", "build"]

to

container_build_command = ["cargo", "near", "build", "non-reproducible-wasm", "--locked"]

If any additional flags are used, they can be appended to the base command unchanged.

  1. Using 0.4.0 or newer cargo_near_build/extended functionality in factory contracts to build subcontracts requires docker build to happen inside of
    sourcescan/cargo-near:0.13.0-rust-1.83.0 image or newer.
    Older images in conjunction with 0.4.0 or newer cargo-near-build library won't result in verifiable/reproducible builds of subcontracts, as the default build command
    which is assumed by the library has changed according to bullet 2., which is not what
    older images will be able to run without error during build verification.

Install cargo-near 0.13.2

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy ByPass -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.2/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.13.2

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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.13.1 - 2024-12-18

18 Dec 13:47
29ff09e
Compare
Choose a tag to compare

Release Notes

Other

  • update cargo near new template image and image_digest (#269)

Install cargo-near 0.13.1

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.1/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.13.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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.13.0 - 2024-12-17

17 Dec 22:39
52729ef
Compare
Choose a tag to compare

Release Notes

Added

  • reproducible choice interactive (#262)

Other

  • update cargo near new template image and image_digest (#259)
  • update cargo near new template image and image_digest (#257)

Install cargo-near 0.13.0

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.0/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.13.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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.12.2 - 2024-11-20

22 Nov 09:33
ee1adff
Compare
Choose a tag to compare

Release Notes

Added

  • sole purpose of current release is to have clang addition published as sourcescan/cargo-near:0.12.2-rust-1.82.0 within 24 hours from current release

Other

  • update cargo near new template image and image_digest (#253)

Install cargo-near 0.12.2

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.12.2/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.12.2

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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.12.1 - 2024-11-19

19 Nov 11:07
cd19708
Compare
Choose a tag to compare

Release Notes

Other

  • updates near-* dependencies to 0.27 release (#251)
  • update cargo near new template image and image_digest (#250)

Install cargo-near 0.12.1

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.12.1/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.12.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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.12.0 - 2024-11-14

14 Nov 14:33
ba3b4b7
Compare
Choose a tag to compare

Release Notes

Added

  • Added the ability to use the TEACH-ME mode (#221)

Other

  • Gracefully handle missing git on cargo near new (#246)
  • update cargo near new template image and image_digest (#244)

Install cargo-near 0.12.0

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.12.0/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.12.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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.11.0 - 2024-10-29

30 Oct 07:41
6693d6a
Compare
Choose a tag to compare

Release Notes

Other

  • add passed_env to default docker template (#242)
  • update cargo near new template image and image_digest (#241)
  • cargo near new integration test + gh workflow to autorenew image tag/digest (#235)
  • [breaking] remove unsafe std::env::set_var (#228)

Install cargo-near 0.11.0

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.11.0/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.11.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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.10.1 - 2024-10-17

17 Oct 13:34
1a10a97
Compare
Choose a tag to compare

Release Notes

Other

  • update Docker image reference in new command template with cargo-near 0.10.0 and Rust 1.81.0 (#232)

sourcescan/cargo-near compatibility note

Using 0.2.0 or newer cargo_near_build/extended functionality in factory contracts to build subcontracts requires docker build to happen inside of sourcescan/cargo-near:0.10.0-rust-1.81.0 image or newer.
Older images in conjunction with 0.2.0 or newer cargo-near-build won't result in verifiable/reproducible builds of subcontracts, as they don't do wasm-opt -O step, which is a breaking change of default behaviour of cargo near build command without flags.

Install cargo-near 0.10.1

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.10.1/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.10.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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.10.0 - 2024-10-16

16 Oct 18:28
5af23c8
Compare
Choose a tag to compare

Release Notes

Added

  • [breaking] use wasm-opt -O (via wasm-opt-rs) as post-step of build (#231)
  • env flag for external parameters of docker build and regular build (#226)

Other

  • Use Posthog instead of Mixpanel to collect stats on new projects creation (#227)
  • Fix tracking usage (#225)

Install cargo-near 0.10.0

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/near/cargo-near/releases/download/cargo-near-v0.10.0/cargo-near-installer.ps1 | iex"

Install prebuilt binaries into your npm project

npm install [email protected]

Download cargo-near 0.10.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-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
cargo-near-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

0.2.0 - 2024-10-16

16 Oct 17:54
5af23c8
Compare
Choose a tag to compare

Release Notes

Added

  • [breaking] use wasm-opt -O (via wasm-opt-rs) as post-step of build (#231)
  • env flag for external parameters of docker build and regular build (#226)

Other

  • disable github release for cargo-near-build via cargo-dist (#222)