From f158906c9579709a0dcce5e524591e9ca3f5543b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= Date: Wed, 2 Aug 2023 15:30:27 +0300 Subject: [PATCH] chore: release --- CHANGELOG.md | 51 +++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- borsh-derive/Cargo.toml | 4 ++-- borsh/Cargo.toml | 2 +- 4 files changed, 55 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1155276c..9e7a1de63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,57 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.0-alpha.1](https://github.com/near/borsh-rs/compare/borsh-v0.11.0...borsh-v1.0.0-alpha.1) - 2023-08-02 + +### Bug Fixes + +- Unused fields warn, fields for inner structs of derived BorshSchema method (#172) +- #[borsh_skip] on field of struct enum variant (BorshSerialize) (#174) +- Filter out foreign attributes in `BorshSchema` derive for enum (#177) + +### Documentation + +- Create a brief documentation of crate's features (#159) +- Mention `schema` feature in doc.rs (#166) + +### Features + +- Forbid Vectors of Zero-sized types from de-/serialization to resolve the RUSTSEC-2023-0033 (#145) +- Add top-level `from_slice` and `from_reader` helper functions to make the API nicer (#142) +- [**breaking**] Remove `BinaryHeap` support (#161) +- Sets/maps benches for reference point (#164) +- Enforce canonicity on `HashSet/BTreeSet/HashMap/BTreeMap` (#162) +- Support recursive structures! (#178) +- Bounds for ser/de derive and schema_params for schema derive attributes (#180) +- Derive attribute for 3rd party structs/enums as fields (#182) + +### Miscellaneous Tasks + +- Bump proc-macro-crate versions (#149) +- Add tests job for MSRV (1.65.0) (#151) +- [**breaking**] Hide maybestd from public interface, despite it being technically available by new name of __maybestd (#153) +- Fix broken reference-style link in minimum supported version badge (#154) +- Remove a bunch of clippy-related TODOs (uninlined_format_args) (#156) +- Simpler bounds on Rc/Arc impls (#167) +- Invited @dj8yfo to CODEOWNERS (#169) +- [**breaking**] Replace ErrorKind::InvalidInput with ErrorKind::InvalidData as per original std::io meaning (#170) + +### Refactor + +- [**breaking**] Make `hashbrown` dependency optional, `hashbrown` feature (#155) +- [**breaking**] `BorshSchemaContainer` fields non-pub, `HashMap` -> `BTreeMap` in schema everywhere (#165) +- [**breaking**] Move derive under #[cfg(feature = "derive")] (#168) +- Introduce `__private` module with macro runtime (#171) + +### Testing + +- Add `insta` snapshots to borsh/tests (#157) +- `insta` tests for prettified `TokenStream`-s in `borsh*derive-internal` (#176) + +### Ci + +- Only release-plz after other checks pass + ## [0.11.0](https://github.com/near/borsh-rs/compare/borsh-v0.10.3...borsh-v0.11.0) - 2023-05-31 ### Added diff --git a/Cargo.toml b/Cargo.toml index 8c2100c9f..f498331f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,5 +10,5 @@ members = [ [workspace.package] # shared version of all public crates in the workspace -version = "0.11.0" +version = "1.0.0-alpha.1" rust-version = "1.66.0" diff --git a/borsh-derive/Cargo.toml b/borsh-derive/Cargo.toml index c514b27eb..9f0cf2d9d 100644 --- a/borsh-derive/Cargo.toml +++ b/borsh-derive/Cargo.toml @@ -17,8 +17,8 @@ Binary Object Representation Serializer for Hashing proc-macro = true [dependencies] -borsh-derive-internal = { path = "../borsh-derive-internal", version = "0.11.0" } -borsh-schema-derive-internal = { path = "../borsh-schema-derive-internal", version = "0.11.0", optional = true } +borsh-derive-internal = { path = "../borsh-derive-internal", version = "1.0.0-alpha.1" } +borsh-schema-derive-internal = { path = "../borsh-schema-derive-internal", version = "1.0.0-alpha.1", optional = true } syn = { version = "2", features = ["full", "fold"] } proc-macro-crate = "1" proc-macro2 = "1" diff --git a/borsh/Cargo.toml b/borsh/Cargo.toml index 13f9fbab1..22711d659 100644 --- a/borsh/Cargo.toml +++ b/borsh/Cargo.toml @@ -27,7 +27,7 @@ required-features = ["std", "derive", "schema"] cfg_aliases = "0.1.0" [dependencies] -borsh-derive = { path = "../borsh-derive", version = "0.11.0", optional = true } +borsh-derive = { path = "../borsh-derive", version = "1.0.0-alpha.1", optional = true } hashbrown = { version = ">=0.11,<0.14", optional = true } bytes = { version = "1", optional = true } bson = { version = "2", optional = true }