Skip to content

0.13.2 - 2024-12-19

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 19 Dec 23:47
7dc8b58

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 cargo-near@0.13.2

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