fix(deps): update rust crate darling to 0.20.0 #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.14.1
->0.20.0
Release Notes
TedDriggs/darling (darling)
v0.20.10
#[allow(clippy::manual_unwrap_or_default)]
to all generated impls to avoid causing clippy fails in crates usingdarling
#296attrs
magic field in derivedFromAttributes
impls #297v0.20.9
from_none
is called on their type #249FromMeta
impls for thestd::num::NonZero*
types #288FromMeta
impls when the parsed value is too large for the receiver type #289v0.20.8
Compare Source
#[darling(with = ...)]
support toattrs
magic field to allow using custom receiver types forattrs
#273v0.20.7
Compare Source
#[darling(flatten)]
to allow forwarding unknown fields to another struct #146v0.20.6
Compare Source
FromMeta
impls #263Error::unexpected_type
so it no longer implies the type was a literal #264FromMeta
Vec
of literals, e.g.LitStr
#265v0.20.5
Compare Source
Flag::span
inherent method, asFlag
can no longer implsyn::spanned::Spanned
#242v0.20.4
Compare Source
#[darling(default = ...)]
#258FromMeta
impl forPathBuf
#259FromMeta
implementation for enums #260FromMeta::from_list
to provide a consistent API for heterogeneous enums that include a mix of unit, newtype and struct variants#[darling(word)]
attribute for unit enum variants (See #63 for details)v0.20.3
Compare Source
FromMeta
impl foru128
andi128
#243v0.20.1
Compare Source
#[allow(clippy::manual_unwrap_or_default)]
to all generated impls to avoid causing clippy fails in crates usingdarling
#296attrs
magic field in derivedFromAttributes
impls #297v0.20.0
Compare Source
Breaking Changes
Replace all occurrences of syn::NestedMeta with darling::ast::NestedMeta.
Replacement for the deprecated AttributeArgs:
LifetimeDef
is nowLifetimeParam
.as_lifetime_def
is renamed toas_lifetime_param
.syn::spanned::Spanned
.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 asyn::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
diagnostics
feature enabled #224v0.14.3
Compare Source
syn
fromdarling
to avoid requiring that consuming crates have asyn
dependency.<SpannedValue<T> as FromMeta>
impl to more precisely capture the value span, as opposed to the span of the entire item.darling::util::{AsShape, Shape, ShapeSet}
to improve "shape" validation for structs and variants. #222v0.14.2
Compare Source
FromMeta
will now error on literals, rather than silently ignoring them. #193Configuration
📅 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.
This PR was generated by Mend Renovate. View the repository job log.