From 48c7b48fa0f7f3b4afda447ba0b04cce3609b0a9 Mon Sep 17 00:00:00 2001
From: Vlad Frolov
Date: Sat, 27 Jan 2024 18:42:59 +0100
Subject: [PATCH] chore: release v0.5.2 (#128)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## 🤖 New release
* `cargo-near`: 0.5.1 -> 0.5.2 (⚠️ API breaking changes)
### ⚠️ `cargo-near` breaking changes
```
--- failure struct_missing: pub struct removed or renamed ---
Description:
A publicly-visible struct cannot be imported by its prior path. A `pub use` may have been removed, or the struct itself may have been renamed or removed entirely.
ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.27.0/src/lints/struct_missing.ron
Failed in:
struct cargo_near::types::utf8_path_buf::Utf8PathBufInner, previously in file /tmp/.tmpdQgrcT/cargo-near/src/types/utf8_path_buf.rs:13
```
Changelog
##
[0.5.2](https://github.com/near/cargo-near/compare/cargo-near-v0.5.1...cargo-near-v0.5.2)
- 2024-01-27
### Other
- Updated "feature flag" for near-cli-rs (ledger)
([#126](https://github.com/near/cargo-near/pull/126))
- Updated near-sdk-rs to 5.0.0-alpha.2 in the new project template
([#127](https://github.com/near/cargo-near/pull/127))
---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
---------
Signed-off-by: Vlad <304265+frol@users.noreply.github.com>
Co-authored-by: Vlad <304265+frol@users.noreply.github.com>
---
.github/workflows/release-plz.yml | 2 --
CHANGELOG.md | 37 ++++++++++++++++++++++++++++++
Cargo.lock | 4 ++--
cargo-near/CHANGELOG.md | 38 -------------------------------
cargo-near/Cargo.toml | 2 +-
release-plz.toml | 7 ++++++
6 files changed, 47 insertions(+), 43 deletions(-)
delete mode 100644 cargo-near/CHANGELOG.md
diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml
index 631e5b0d..fdc5e3ca 100644
--- a/.github/workflows/release-plz.yml
+++ b/.github/workflows/release-plz.yml
@@ -20,8 +20,6 @@ jobs:
fetch-depth: 0
submodules: recursive
token: ${{ secrets.MY_GITHUB_TOKEN }}
- - name: Install Rust toolchain
- uses: dtolnay/rust-toolchain@stable
- name: Install packages (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install --assume-yes libudev-dev
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7a53d79a..e71fa6bc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [0.5.2](https://github.com/near/cargo-near/compare/cargo-near-v0.5.1...cargo-near-v0.5.2) - 2024-01-27
+
+### Other
+- Updated "feature flag" for near-cli-rs (ledger) ([#126](https://github.com/near/cargo-near/pull/126))
+- Updated near-sdk-rs to 5.0.0-alpha.2 in the new project template ([#127](https://github.com/near/cargo-near/pull/127))
+
+## [0.5.1](https://github.com/near/cargo-near/compare/cargo-near-v0.5.0...cargo-near-v0.5.1) - 2024-01-25
+
+### Other
+- Upgraded NEAR crates to 0.20.0 release ([#125](https://github.com/near/cargo-near/pull/125))
+- Updated binary releases pipeline to use cargo-dist v0.7.2 (previously v0.3.0) ([#122](https://github.com/near/cargo-near/pull/122))
+
+## [0.5.0](https://github.com/near/cargo-near/compare/cargo-near-v0.4.1...cargo-near-v0.5.0) - 2023-11-20
+
+### Added
+- New command to initialize a new smart contract project ([#117](https://github.com/near/cargo-near/pull/117))
+
+### Other
+- update `near-sdk`, `near-abi`, `borsh` version ([#109](https://github.com/near/cargo-near/pull/109))
+
+## [0.4.1](https://github.com/near/cargo-near/compare/cargo-near-v0.4.0...cargo-near-v0.4.1) - 2023-10-19
+
+### Added
+- New command - deploy ([#113](https://github.com/near/cargo-near/pull/113))
+- New command - create-dev-account ([#108](https://github.com/near/cargo-near/pull/108))
+
+### Fixed
+- `cargo near build` now works on Windows ([#110](https://github.com/near/cargo-near/pull/110))
+
+### Other
+- remove `#[ignore]` from parts of test suite, using `near-workspaces` ([#111](https://github.com/near/cargo-near/pull/111))
+
+## [0.4.0](https://github.com/near/cargo-near/compare/cargo-near-v0.3.1...cargo-near-v0.4.0) - 2023-10-01
+
+### Other
+- [**breaking**] Re-implemented cargo-near to use interactive-clap and near-cli-rs features ([#103](https://github.com/near/cargo-near/pull/103))
+
## [0.3.1] - 2023-06-23
- Exposed `build` and `abi` modules to make them reusable when cargo-near is used as a crate.
diff --git a/Cargo.lock b/Cargo.lock
index 79d30ade..7c796854 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -770,7 +770,7 @@ dependencies = [
[[package]]
name = "cargo-near"
-version = "0.5.1"
+version = "0.5.2"
dependencies = [
"atty",
"bs58 0.4.0",
@@ -808,7 +808,7 @@ version = "0.1.0"
dependencies = [
"borsh 1.3.1",
"camino",
- "cargo-near 0.5.1",
+ "cargo-near 0.5.2",
"color-eyre",
"const_format",
"function_name",
diff --git a/cargo-near/CHANGELOG.md b/cargo-near/CHANGELOG.md
deleted file mode 100644
index c404c03f..00000000
--- a/cargo-near/CHANGELOG.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Changelog
-All notable changes to this project will be documented in this file.
-
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-## [Unreleased]
-
-## [0.5.1](https://github.com/near/cargo-near/compare/cargo-near-v0.5.0...cargo-near-v0.5.1) - 2024-01-25
-
-### Other
-- Upgraded NEAR crates to 0.20.0 release ([#125](https://github.com/near/cargo-near/pull/125))
-- Updated binary releases pipeline to use cargo-dist v0.7.2 (previously v0.3.0) ([#122](https://github.com/near/cargo-near/pull/122))
-
-## [0.5.0](https://github.com/near/cargo-near/compare/cargo-near-v0.4.1...cargo-near-v0.5.0) - 2023-11-20
-
-### Added
-- New command to initialize a new smart contract project ([#117](https://github.com/near/cargo-near/pull/117))
-
-### Other
-- update `near-sdk`, `near-abi`, `borsh` version ([#109](https://github.com/near/cargo-near/pull/109))
-
-## [0.4.1](https://github.com/near/cargo-near/compare/cargo-near-v0.4.0...cargo-near-v0.4.1) - 2023-10-19
-
-### Added
-- New command - deploy ([#113](https://github.com/near/cargo-near/pull/113))
-- New command - create-dev-account ([#108](https://github.com/near/cargo-near/pull/108))
-
-### Fixed
-- `cargo near build` now works on Windows ([#110](https://github.com/near/cargo-near/pull/110))
-
-### Other
-- remove `#[ignore]` from parts of test suite, using `near-workspaces` ([#111](https://github.com/near/cargo-near/pull/111))
-
-## [0.4.0](https://github.com/near/cargo-near/compare/cargo-near-v0.3.1...cargo-near-v0.4.0) - 2023-10-01
-
-### Other
-- [**breaking**] Re-implemented cargo-near to use interactive-clap and near-cli-rs features ([#103](https://github.com/near/cargo-near/pull/103))
diff --git a/cargo-near/Cargo.toml b/cargo-near/Cargo.toml
index 7dba0407..dd101308 100644
--- a/cargo-near/Cargo.toml
+++ b/cargo-near/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cargo-near"
-version = "0.5.1"
+version = "0.5.2"
authors = ["Near Inc "]
edition = "2021"
rust-version = "1.72.0"
diff --git a/release-plz.toml b/release-plz.toml
index e8e0670f..d43b6cfc 100644
--- a/release-plz.toml
+++ b/release-plz.toml
@@ -1,2 +1,9 @@
[workspace]
git_release_enable = false
+# Use `cargo-near` crate CHANGELOG as top-level one
+changelog_update = false
+
+[[package]]
+name = "cargo-near"
+changelog_update = true
+changelog_path = "./CHANGELOG.md"