Releases: near/cargo-near
Releases · near/cargo-near
0.13.2 - 2024-12-19
Release Notes
Other
- near-* crates to 0.28 (#279)
- update
cargo near new
template image
and image_digest
(#273)
sourcescan/cargo-near compatibility note
-
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.
-
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.
- 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
Download cargo-near 0.13.2
0.13.1 - 2024-12-18
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
Download cargo-near 0.13.1
0.13.0 - 2024-12-17
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
Download cargo-near 0.13.0
0.12.2 - 2024-11-20
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
Download cargo-near 0.12.2
0.12.1 - 2024-11-19
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
Download cargo-near 0.12.1
0.12.0 - 2024-11-14
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
Download cargo-near 0.12.0
0.11.0 - 2024-10-29
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
Download cargo-near 0.11.0
0.10.1 - 2024-10-17
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
Download cargo-near 0.10.1
0.10.0 - 2024-10-16
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
Download cargo-near 0.10.0
0.2.0 - 2024-10-16
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)