From 202f5e1b07c3d80e4a8f166ae647c6b8b9d05296 Mon Sep 17 00:00:00 2001 From: Ted Driggs Date: Mon, 22 Feb 2021 08:20:24 -0800 Subject: [PATCH] Bump version to 0.12.1 --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ Cargo.toml | 8 ++++---- core/Cargo.toml | 2 +- macro/Cargo.toml | 4 ++-- 4 files changed, 37 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5df984..86045de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog +## v0.12.1 (February 22, 2021) + +- Impl `FromMeta` for `syn::ExprArray` [#122](https://github.com/TedDriggs/darling/pull/122) +- Remove use of `unreachable` from `darling::ast::Data` [#123](https://github.com/TedDriggs/darling/pull/123) +- Add `darling::ast::Data::try_empty_from` to avoid panics when trying to read a union body [#123](https://github.com/TedDriggs/darling/pull/123) + ## v0.12.0 (January 5, 2021) + - POSSIBLY BREAKING: Derived impls of `FromDeriveInput`, `FromField`, `FromVariant`, and `FromTypeParam` will now error when encountering an attribute `darling` has been asked to parse that isn't a supported shape. Any crates using `darling` that relied on those attributes being silently ignored could see new errors reported in their dependent crates. [#113](https://github.com/TedDriggs/darling/pull/113) - Impl `syn::spanned::Spanned` for `darling::util::SpannedValue` [#113](https://github.com/TedDriggs/darling/pull/113) @@ -8,37 +15,46 @@ - Add `impl From for Error` to losslessly propagate `syn` errors [#116](https://github.com/TedDriggs/darling/pull/116) ## v0.11.0 (December 14, 2020) + - Bump minor version due to unexpected breaking change [#107](https://github.com/TedDriggs/darling/issues/107) ## v0.10.3 (December 10, 2020) + - Add `discriminant` magic field when deriving `FromVariant` [#105](https://github.com/TedDriggs/darling/pull/105) ## v0.10.2 (October 30, 2019) + - Bump syn dependency to 1.0.1 [#83](https://github.com/TedDriggs/darling/pull/83) ## v0.10.1 (September 25, 2019) + - Fix test compilation errors [#81](https://github.com/TedDriggs/darling/pull/81) ## v0.10.0 (August 15, 2019) + - Bump syn and quote to 1.0 [#79](https://github.com/TedDriggs/darling/pull/79) - Increase rust version to 1.31 ## v0.9.0 (March 20, 2019) + - Enable "did you mean" suggestions by default - Make `darling_core::{codegen, options}` private [#58](https://github.com/TedDriggs/darling/issues/58) - Fix `Override::as_mut`: [#66](https://github.com/TedDriggs/darling/issues/66) ## v0.8.6 (March 18, 2019) + - Added "did you mean" suggestions for unknown fields behind the `suggestions` flag [#60](https://github.com/TedDriggs/issues/60) - Added `Error::unknown_field_with_alts` to support the suggestion use-case. - Added `ast::Fields::len` and `ast::Fields::is_empty` methods. ## v0.8.5 (February 4, 2019) + - Accept unquoted positive numeric literals [#52](https://github.com/TedDriggs/issues/52) - Add `FromMeta` to the `syn::Lit` enum and its variants - Improve error message for unexpected literal formats to not say "other" ## v0.8.4 (February 4, 2019) + - Use `syn::Error` to provide precise errors before `proc_macro::Diagnostic` is available - Add `diagnostics` feature flag to toggle between stable and unstable error backends - Attach error information in more contexts @@ -46,40 +62,49 @@ - Proc-macro authors will now see better errors in `darling` attributes ## v0.8.3 (January 21, 2019) + - Attach spans to errors in generated trait impls [#37](https://github.com/darling/issues/37) - Attach spans to errors for types with provided bespoke implementations - Deprecate `set_span` from 0.8.2, as spans should never be broadened after being initially set ## v0.8.2 (January 17, 2019) + - Add spans to errors to make quality warnings and errors easy in darling. This is blocked on diagnostics stabilizing. - Add `darling::util::SpannedValue` so proc-macro authors can remember position information alongside parsed values. ## v0.8.0 + - Update dependency on `syn` to 0.15 [#44](https://github.com/darling/pull/44). Thanks to @hcpl ## v0.7.0 (July 24, 2018) + - Update dependencies on `syn` and `proc-macro2` - Add `util::IdentString`, which acts as an Ident or its string equivalent ## v0.6.3 (May 22, 2018) + - Add support for `Uses*` traits in where predicates ## v0.6.2 (May 22, 2018) + - Add `usage` module for tracking type param and lifetime usage in generic declarations - Add `UsesTypeParams` and `CollectsTypeParams` traits [#37](https://github.com/darling/issues/37) - Add `UsesLifetimes` and `CollectLifetimes` traits [#41](https://github.com/darling/pull/41) - Don't add `FromMeta` bounds to type parameters only used by skipped fields [#40](https://github.com/darling/pull/40) ## v0.6.1 (May 17, 2018) + - Fix an issue where the `syn` update broke shape validation [#36](https://github.com/TedDriggs/darling/issues/36) ## v0.6.0 (May 15, 2018) ### Breaking Changes + - Renamed `FromMetaItem` to `FromMeta`, and renamed `from_meta_item` method to `from_meta` - Added dedicated `derive(FromMetaItem)` which panics and redirects users to `FromMeta` ## v0.5.0 (May 10, 2018) + - Add `ast::Generics` and `ast::GenericParam` to work with generics in a manner similar to `ast::Data` - Add `ast::GenericParamExt` to support alternate representations of generic parameters - Add `util::WithOriginal` to get a parsed representation and syn's own struct for a syntax block @@ -88,20 +113,25 @@ - Add `FromTypeParam` trait [#30](https://github.com/TedDriggs/darling/pull/30). Thanks to @upsuper ## v0.4.0 (April 5, 2018) + - Update dependencies on `proc-macro`, `quote`, and `syn` [#26](https://github.com/TedDriggs/darling/pull/26). Thanks to @hcpl ## v0.3.3 (April 2, 2018) + **YANKED** ## v0.3.2 (March 13, 2018) + - Derive `Default` on `darling::Ignored` (fixes [#25](https://github.com/TedDriggs/darling/issues/25)). ## v0.3.1 (March 7, 2018) + - Support proc-macro2/nightly [#24](https://github.com/TedDriggs/darling/pull/24). Thanks to @kdy1 ## v0.3.0 (January 26, 2018) ### Breaking Changes + - Update `syn` to 0.12 [#20](https://github.com/TedDriggs/darling/pull/20). Thanks to @Eijebong - Update `quote` to 0.4 [#20](https://github.com/TedDriggs/darling/pull/20). Thanks to @Eijebong - Rename magic field `body` in derived `FromDeriveInput` structs to `data` to stay in sync with `syn` diff --git a/Cargo.toml b/Cargo.toml index 50dbacf..6e90902 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "darling" -version = "0.12.0" +version = "0.12.1" authors = ["Ted Driggs "] repository = "https://github.com/TedDriggs/darling" -documentation = "https://docs.rs/darling/0.12.0" +documentation = "https://docs.rs/darling/0.12.1" description = """ A proc-macro library for reading attributes into structs when implementing custom derives. @@ -16,8 +16,8 @@ exclude = ["/.travis.yml", "/publish.sh", "/.github/**"] maintenance = { status = "actively-developed" } [dependencies] -darling_core = { version = "=0.12.0", path = "core" } -darling_macro = { version = "=0.12.0", path = "macro" } +darling_core = { version = "=0.12.1", path = "core" } +darling_macro = { version = "=0.12.1", path = "macro" } [dev-dependencies] proc-macro2 = "1" diff --git a/core/Cargo.toml b/core/Cargo.toml index c5ec61f..69e07f2 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "darling_core" -version = "0.12.0" +version = "0.12.1" authors = ["Ted Driggs "] repository = "https://github.com/TedDriggs/darling" description = """ diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 5b70f76..ffdd23f 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "darling_macro" -version = "0.12.0" +version = "0.12.1" authors = ["Ted Driggs "] repository = "https://github.com/TedDriggs/darling" description = """ @@ -12,7 +12,7 @@ license = "MIT" [dependencies] quote = "1" syn = "1" -darling_core = { version = "=0.12.0", path = "../core" } +darling_core = { version = "=0.12.1", path = "../core" } [lib] proc-macro = true