cargo-near 0.13.2
If any additional flags are used, they can be appended to the base command unchanged.
- The newest stable release in the 0.13 line: cargo-near 0.13.6
- Newest cargo-near: cargo-near 0.22.0
Release Notes
Other
- near-* crates to 0.28 (#279)
- update
cargo near newtemplateimageandimage_digest(#273)
sourcescan/cargo-near compatibility note
With 0.13.0 release for
build reproducible-wasm/deploy build-reproducible-wasmcommandscargo neardoes no longer support passing through additional flags from host command to command run inside docker container, whencontainer_build_commandis omitted from[package.metadata.near.reproducible_build]in contract's manifest.container_build_commandis now considered a mandatory field instead of optional.when updating
imageandimage_digestin 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.
- 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 |