Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate darling to 0.20.0 #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 20, 2022

This PR contains the following updates:

Package Type Update Change
darling dependencies minor 0.14.1 -> 0.20.0

Release Notes

TedDriggs/darling (darling)

v0.20.10

  • Add #[allow(clippy::manual_unwrap_or_default)] to all generated impls to avoid causing clippy fails in crates using darling #​296
  • Properly initialize attrs magic field in derived FromAttributes impls #​297

v0.20.9

  • Allow word-form for newtype enum variants whose only field produces a value when from_none is called on their type #​249
  • Add FromMeta impls for the std::num::NonZero* types #​288
  • Fix panic in number FromMeta impls when the parsed value is too large for the receiver type #​289

v0.20.8

Compare Source

  • Add #[darling(with = ...)] support to attrs magic field to allow using custom receiver types for attrs #​273

v0.20.7

Compare Source

  • Add #[darling(flatten)] to allow forwarding unknown fields to another struct #​146
  • Don't suggest names of skipped fields in derived impls #​268

v0.20.6

Compare Source

  • Fix some missing syn invisible group handling in FromMeta impls #​263
  • Fix misleading error message on Error::unexpected_type so it no longer implies the type was a literal #​264
  • Impl FromMeta Vec of literals, e.g. LitStr #​265

v0.20.5

Compare Source

  • Add Flag::span inherent method, as Flag can no longer impl syn::spanned::Spanned #​242

v0.20.4

Compare Source

  • Accept bare paths in #[darling(default = ...)] #​258
  • Add FromMeta impl for PathBuf #​259
  • Improve FromMeta implementation for enums #​260
    • Properly implement unit arms in FromMeta::from_list to provide a consistent API for heterogeneous enums that include a mix of unit, newtype and struct variants
    • Add #[darling(word)] attribute for unit enum variants (See #​63 for details)

v0.20.3

Compare Source

  • Add FromMeta impl for u128 and i128 #​243

v0.20.1

Compare Source

  • Add #[allow(clippy::manual_unwrap_or_default)] to all generated impls to avoid causing clippy fails in crates using darling #​296
  • Properly initialize attrs magic field in derived FromAttributes impls #​297

v0.20.0

Compare Source

Breaking Changes
  • Replace all occurrences of syn::NestedMeta with darling::ast::NestedMeta.

  • Replacement for the deprecated AttributeArgs:

// Before

parse_macro_input!(args as AttributeArgs);

// After

match NestedMeta::parse_meta_list(args) {
    Ok(v) => v,
    Err(e) => { 
      return TokenStream::from(Error::from(e).write_errors()); 
    }
};
  • In GenericParamExt, LifetimeDef is now LifetimeParam.
  • In GenericParamExt, as_lifetime_def is renamed to as_lifetime_param.
  • Flag and SpannedValue no longer implement syn::spanned::Spanned.
  • The MSRV (minimum supported Rust version) is now 1.56, because of syn.
Deprecation Warnings

In previous versions of darling, arbitrary expressions were passed in attributes by wrapping them in quotation marks.
v0.20.0 preserves this behavior for syn::Expr, but as a result a field expecting a syn::Expr cannot accept a string literal - it will incorrectly attempt to parse the contents. If this is an issue for you, please add a comment to #​229.

v0.14.4

Compare Source

  • Add support for child diagnostics when diagnostics feature enabled #​224

v0.14.3

Compare Source

  • Re-export syn from darling to avoid requiring that consuming crates have a syn dependency.
  • Change <SpannedValue<T> as FromMeta> impl to more precisely capture the value span, as opposed to the span of the entire item.
  • Add darling::util::{AsShape, Shape, ShapeSet} to improve "shape" validation for structs and variants. #​222

v0.14.2

Compare Source

  • Derived impls of FromMeta will now error on literals, rather than silently ignoring them. #​193
  • Don't include property paths in compile errors when spans are available. #​203

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.14.2 fix(deps): update rust crate darling to 0.14.4 Mar 16, 2023
@renovate renovate bot force-pushed the renovate/darling-0.x branch from 522acaf to b693d70 Compare March 16, 2023 13:57
@renovate renovate bot force-pushed the renovate/darling-0.x branch from b693d70 to 1f163c6 Compare May 28, 2023 07:45
@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.14.4 fix(deps): update rust crate darling to 0.20.1 May 28, 2023
@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.20.1 fix(deps): update rust crate darling to 0.20.3 Jul 12, 2023
@renovate renovate bot force-pushed the renovate/darling-0.x branch from 1f163c6 to 90652c5 Compare July 12, 2023 22:48
@renovate renovate bot force-pushed the renovate/darling-0.x branch from 90652c5 to 7d7bc47 Compare January 29, 2024 22:21
@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.20.3 fix(deps): update rust crate darling to 0.20.4 Jan 29, 2024
@renovate renovate bot force-pushed the renovate/darling-0.x branch from 7d7bc47 to 928db6c Compare January 31, 2024 01:49
@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.20.4 fix(deps): update rust crate darling to 0.20.5 Jan 31, 2024
@renovate renovate bot force-pushed the renovate/darling-0.x branch from 928db6c to 4612f67 Compare February 14, 2024 22:33
@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.20.5 fix(deps): update rust crate darling to 0.20.6 Feb 14, 2024
@renovate renovate bot force-pushed the renovate/darling-0.x branch from 4612f67 to ead6087 Compare February 23, 2024 00:01
@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.20.6 fix(deps): update rust crate darling to 0.20.7 Feb 23, 2024
@renovate renovate bot force-pushed the renovate/darling-0.x branch from ead6087 to 9670162 Compare February 23, 2024 19:53
@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.20.7 fix(deps): update rust crate darling to 0.20.8 Feb 23, 2024
@renovate renovate bot force-pushed the renovate/darling-0.x branch from 9670162 to 85cf75b Compare May 5, 2024 09:28
@renovate renovate bot changed the title fix(deps): update rust crate darling to 0.20.8 fix(deps): update rust crate darling to 0.20.0 May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants