fix(deps): update major dependencies #9
+123
−99
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:
v3
->v4
0.99.18
->1.0.0
1.0.0
->2.0.0
0.11.0
->0.13.0
1.0.64
->2.0.7
0.51.1
->0.58.0
Release Notes
actions/checkout (actions/checkout)
v4
Compare Source
JelteF/derive_more (derive_more)
v1.0.0
Compare Source
More than 8 years after the first commit and almost 5 years after the 0.99.0
release,
derive_more
has finally reached its 1.0.0 release. This releasecontains a lot of changes (including some breaking ones) to make it easier to
use the derives and make it possible to extend them without having to break
backwards compatibility again. There are five major changes that I would like
to call out, but there are many more changes that are documented below:
Debug
derive that can be used to easily customizeDebug
formatting.
Display
derive, which allows you to do anything thatthiserror
provides, but it worksfor any type not just errors. And by combining the
Display
derive with theError
andFrom
derives, there shouldn't really be any need to usethiserror
anymore (if you are missing a feature/behaviour fromthiserror
please report an issue).
Error
when an error occurs instead of a
&'static str
.use derive_more::SomeTrait
the actual trait is also importednot just the derive macro. This is especially useful for
Error
andDisplay
Breaking changes
std
feature which should be disabled inno_std
environments.std
, are now disabled by default. Thefull
feature can be used to get the old behavior of supporting all possible
derives.
TryFrom
,Add
,Sub
,BitAnd
,BitOr
,BitXor
,Not
andNeg
derives now return a dedicated error type instead of a
&'static str
onerror.
FromStr
derive now uses a dedicatedFromStrError
error type insteadof generating unique one each time.
Display
derive (and otherfmt
-like ones) now uses#[display("...", (<expr>),*)]
syntax instead of#[display(fmt = "...", ("<expr>"),*)]
, and#[display(bound(<bound>))]
instead of
#[display(bound = "<bound>")]
. So without the double quotesaround the expressions and bounds.
Debug
andDisplay
derives (and otherfmt
-like ones) now transparentlydelegate to the inner type when
#[display("...", (<expr>),*)]
attribute istrivially substitutable with a transparent call.
(#322)
DebugCustom
derive is renamed to justDebug
(gated now under a separatedebug
feature), and its semantics were changed to be a superset ofstd
variantof
Debug
.From
derive doesn't deriveFrom<()>
for enum variants without anyfields anymore. This feature was removed because it was considered useless in
practice.
From
derive now uses#[from(<types>)]
instead of#[from(types(<types>))]
and ignores field type itself.
Into
derive now uses#[into(<types>)]
instead of#[into(types(<types>))]
and ignores field type itself.
Into
derive now generates separate impls for each field whenever the#[into(...)]
attribute is applied to it. (#291)
Error
derive is updated with changes to theerror_generic_member_access
unstable feature for nightly users. (#200,
#294)
as_mut
feature is removed, and theAsMut
derive is now gated by theas_ref
feature. (#295)#[display("...")]
attribute on an enum now requires the usageof
{_variant}
to include the variant instead of including it at{}
. Thereason is that
{}
now references the first argument to the format string,just like in all other format strings. (#377)
Added
Display
derives. So now you can use:#[display(fmt = "Prefix: {field}")]
instead of needing to use#[display(fmt = "Prefix: {}", field)]
FromStr
derive support for enums that contain variants without fields.If you pass the name of the variant to
from_str
it will create the matchingvariant.
#[unwrap(owned, ref, ref_mut)]
attribute for theUnwrap
derive.By using them, it is possible to derive implementations for the reference types as well.
(#206)
TryUnwrap
derive similar to theUnwrap
derive. This one returns aResult
and does not panic.(#206)
Debug
derive with the same syntax asDisplay
derives.(#279)
derive_more::derive
module exporting only macros, without traits.(#290)
AsRef
/AsMut
derives.(#298)
TryFrom
derive for enums to convert from their discriminant.(#300)
#[inline]
attributes toIsVariant
andDebug
implementations.(#334
#[track_caller]
toAdd
,Mul
,AddAssign
andMulAssign
derives(#378
Changed
Constructor
andIsVariant
derives now generateconst fn
functions.IsVariant
are now marked#[must_use]
.(#350)
Unwrap
andIsVariant
derives now generate doc comments.#[automatically_derived]
is now emitted from all macro expansions. Thisshould prevent code style linters from attempting to modify the generated
code.
syn
2.0.Error
derive now works in nightlyno_std
environmentsFixed
HashSet
in all derives, this is needed for rust analyzerto work correctly.
Provider
API for backtraces inError
derive.Error
derive not working withconst
generics.Box<dyn Error + Send + 'static>
IntoIterator
impls for generic structs.(#284)
Display
derive.(#297)
core
crate.(#327)
IsVariant
derive.{field:p}
do the expected thing in format strings forDisplay
andDebug
. Also document weirdness aroundPointer
formatting when usingexpressions, due to field variables being references.
(#381)
Emoun/duplicate (duplicate)
v2.0.0
Compare Source
Added
substitute!
andsubstitute_item
allow the use of global substitutions without duplication. See #49.Changed
duplicate!
andduplicate_item
no longer allow using exclusively global substitutions.proc-macro-error
dependency withproc-macro2-diagnostics
for printing nice error messages and hints. See #61.heck
dependency to version 0.5.rust-itertools/itertools (itertools)
v0.13.0
Compare Source
Breaking
DoubleEndedIterator
forConsTuples
(#853)MultiProduct
fused and fixed on an empty iterator (#835, #834)iproduct!
to return tuples for maxi one iterator too (#870)PutBack::put_back
to return the old value (#880)repeat_call, Itertools::{foreach, step, map_results, fold_results}
(#878)TakeWhileInclusive::new
(#912)Added
Itertools::{smallest_by, smallest_by_key, largest, largest_by, largest_by_key}
(#654, #885)Itertools::tail
(#899)DoubleEndedIterator
forProcessResults
(#910)Debug
forFormatWith
(#931)Itertools::get
(#891)Changed
Itertools::group_by
(renamedchunk_by
) (#866, #879)unfold
(usestd::iter::from_fn
instead) (#871)GroupingMapBy
(#873, #876)Fn
bounds toFnMut
indiff_with, Itertools::into_group_map_by
(#886)Debug/Clone
bounds forMapInto
(#889)use_alloc
feature (#887)Itertools::set_from
(#888)README.md
(#890)Cargo.toml
(#894)Itertools::k_smallest
on short unfused iterators (#900)Itertools::tree_fold1
(renamedtree_reduce
) (#895)GroupingMap::fold_first
(renamedreduce
) (#902)Itertools::k_smallest(0)
to consume the iterator, optimizedItertools::k_smallest(1)
(#909)Combinations::nth
(#914)MergeBy::fold
(#920)CombinationsWithReplacement::nth
(#923)FlattenOk::{fold, rfold}
(#927)Powerset::nth
(#924)assert_equal
for iterators longer thani32::MAX
(#932)must_use
message of non-lazyKMergeBy
andTupleCombinations
(#939)Notable Internal Changes
CONTRIBUTING.md
(#767)v0.12.1
Compare Source
Added
Itertools::[tuple_]combinations
(#822)iterate
(#842)Clone
andDebug
forDiff
(#845)Debug
forWithPosition
(#859)Eq
forMinMaxResult
(#838)From<EitherOrBoth<A, B>>
forOption<Either<A, B>>
(#843)PeekingNext
forRepeatN
(#855)Changed
CoalesceBy
lazy (#801)Filter[Map]Ok::next
,Itertools::partition
,Unique[By]::next[_back]
(#818)Itertools::find_position
(#837)Positions::next[_back]
(#816)ZipLongest::fold
(#854)Debug
bounds forGroupingMapBy
(#860)ExactlyOneError::fold
(#826)Interleave[Shortest]::fold
(#849)MultiPeek::fold
(#820)PadUsing::[r]fold
(#825)PeekNth::fold
(#824)Positions::[r]fold
(#813)PutBackN::fold
(#823)RepeatN::[r]fold
(#821)TakeWhileInclusive::fold
(#851)ZipLongest::rfold
(#848)Notable Internal Changes
clippy
in CI (#740)rustdoc
in CI (#840)v0.12.0
Compare Source
Breaking
take_while_inclusive
consume iterator by value (#709)Clone
bound toUnique
(#777)Added
Itertools::try_len
(#723)sort_unstable
(#796)GroupMap::fold_with
(#778, #785)PeekNth::{peek_mut, peek_nth_mut}
(#716)PeekNth::{next_if, next_if_eq}
(#734)(Option<A>,Option<B>)
toEitherOrBoth
(#713)Either<A, B>
toEitherOrBoth<A, B>
(#715)ExactSizeIterator
forTuples
(#761)ExactSizeIterator
for(Circular)TupleWindows
(#752)EitherOrBoth<T>
a shorthand forEitherOrBoth<T, T>
(#719)Changed
#[must_use]
annotations on iterator adaptors (#794)Combinations
lazy (#795)Intersperse(With)
lazy (#797)Permutations
lazy (#793)Product
lazy (#800)TupleWindows
lazy (#602)Combinations::{count, size_hint}
(#729)CombinationsWithReplacement::{count, size_hint}
(#737)Powerset::fold
(#765)Powerset::count
(#735)TupleCombinations::{count, size_hint}
(#763)TupleCombinations::fold
(#775)WhileSome::fold
(#780)WithPosition::fold
(#772)ZipLongest::fold
(#774){min, max}_set*
operations requirealloc
feature, instead ofstd
(#760)tree_fold1
(#787)permutations
(#724)multiunzip
(#770)Notable Internal Changes
Permutations
(#739, #748, #790)Merge
/MergeBy
/MergeJoinBy
implementations (#736)Permutations::size_hint
(#739)rustfmt
in CI (#751)cargo hack
to check MSRV (#754)dtolnay/thiserror (thiserror)
v2.0.7
Compare Source
v2.0.6
Compare Source
v2.0.5
Compare Source
v2.0.4
Compare Source
From
impls (#391, thanks @matt-phylum)v2.0.3
Compare Source
v2.0.2
Compare Source
v2.0.1
Compare Source
v2.0.0
Compare Source
Breaking changes
Referencing keyword-named fields by a raw identifier like
{r#type}
inside a format string is no longer accepted; simply use the unraw name like{type}
(#347)This aligns thiserror with the standard library's formatting macros, which gained support for implicit argument capture later than the release of this feature in thiserror 1.x.
Trait bounds are no longer inferred on fields whose value is shadowed by an explicit named argument in a format message (#345)
Tuple structs and tuple variants can no longer use numerical
{0}
{1}
access at the same time as supplying extra positional arguments for a format message, as this makes it ambiguous whether the number refers to a tuple field vs a different positional arg (#354)Code containing invocations of thiserror's
derive(Error)
must now have a direct dependency on thethiserror
crate regardless of the error data structure's contents (#368, #369, #370, #372)Features
Support disabling thiserror's standard library dependency by disabling the default "std" Cargo feature:
thiserror = { version = "2", default-features = false }
(#373)Support using
r#source
as field name to opt out of a field named "source" being treated as an error'sError::source()
(#350)Infinite recursion in a generated Display impl now produces an
unconditional_recursion
warning (#359)A new attribute
#[error(fmt = path::to::myfmt)]
can be used to write formatting logic for an enum variant out-of-line (#367)Enums with an enum-level format message are now able to have individual variants that are
transparent
to supersede the enum-level message (#366)v1.0.69
Compare Source
v1.0.68
Compare Source
v1.0.67
Compare Source
v1.0.66
Compare Source
v1.0.65
Compare Source
microsoft/windows-rs (windows)
v0.58.0
Compare Source
This release includes updates to metadata for new or fixed API definitions (#3111, #3136), various improvements and fixes to code generation, compliance with new Rust warnings, additional COM authoring support improvements (#3065), limited non-Windows support (#3135), and more.
It includes major updates to the following crates, mainly due to breaking changes in metadata for API definitions.
riddle
0.58.0windows
0.58.0windows-bindgen
0.58.0windows-core
0.58.0windows-implement
0.58.0windows-interface
0.58.0windows-metadata
0.58.0It also includes major updates to the following utility crates.
windows-result
0.2.0windows-registry
0.2.0The
windows-result
crate now provides limited non-Windows support, and thewindows-registry
crate offers new lossless queries for binary and wide string values.And it includes minor updates to the
windows-targets
crates, with the addition of several new APIs.windows-targets
0.52.6This release also includes the first published version of the
windows-strings
crate, moving the string types from thewindows-core
crate into a dedicated crate as a smaller dependency. It also offers an efficientHSTRING
builder (#3133).To clarify, the only crates that continue to support limited non-Windows builds are:
windows-bindgen
andwindows-metadata
for code generation on non-Windows platforms.windows-core
andwindows-result
for COM support on non-Windows platforms.What's Changed
rustfmt
for repo by @kennykerr in https://github.com/microsoft/windows-rs/pull/3084windows-bindgen
directly by @kennykerr in https://github.com/microsoft/windows-rs/pull/3086windows-result
to work on non-Windows platforms by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3082Debug
derive macro does not need to be qualified by @kennykerr in https://github.com/microsoft/windows-rs/pull/3097unused
to deal with new warning about "unused" private fields in structs by @kennykerr in https://github.com/microsoft/windows-rs/pull/3103mio
dependency by @kennykerr in https://github.com/microsoft/windows-rs/pull/3107windows
crate works by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3110cargo run ...
by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3113windows
andwindows-sys
in unit test mode by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3112windows-strings
crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3125windows-core
internals by @kennykerr in https://github.com/microsoft/windows-rs/pull/3129windows-bindgen
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3130Error
andResult<()>
to be the same size asHRESULT
by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3126windows-core
crate by @kennykerr in https://github.com/microsoft/windows-rs/pull/3131windows_slim_errors
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3132HSTRING
builder and registry support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3133Send
andSync
forWeak<T>
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3138Future
implementation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3142HSTRING
builder provides initialized memory by @kennykerr in https://github.com/microsoft/windows-rs/pull/3141windows-strings
crate Windows-only by @kennykerr in https://github.com/microsoft/windows-rs/pull/3143Full Changelog: microsoft/windows-rs@0.57.0...0.58.0
v0.57.0
Compare Source
This release includes updates to a number of crates.
It includes major updates to the following:
riddle
0.57.0windows
0.57.0windows-bindgen
0.57.0windows-core
0.57.0windows-implement
0.57.0windows-interface
0.57.0windows-metadata
0.57.0It also includes minor updates to the following:
windows-result
0.1.2windows-registry
0.1.2This includes various improvements and fixes to code generation, compliance with new Rust warnings, COM authoring support helpers, and more.
This release also includes the first published version of the
cppwinrt
crate.What's Changed
as_raw
towindows-registry
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3003E_POINTER
constant inwindows-core
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3008Copy
,Clone
, andDebug
for handles by @kennykerr in https://github.com/microsoft/windows-rs/pull/3015HSTRING
interior mutability warnings in nightly by @riverar in https://github.com/microsoft/windows-rs/pull/3021unexpected_cfgs
warnings by @kennykerr in https://github.com/microsoft/windows-rs/pull/3022Ref
andOutRef
to enhance COM authoring support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3025Ref
interface parameters by @kennykerr in https://github.com/microsoft/windows-rs/pull/3027from_raw
towindows-registry
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3034windows-registry
readme by @kennykerr in https://github.com/microsoft/windows-rs/pull/3035windows-metadata
andwindows-bindgen
by @kennykerr in https://github.com/microsoft/windows-rs/pull/3039TypeName
to support pattern matching by @kennykerr in https://github.com/microsoft/windows-rs/pull/3040ComObject<T>
type that represents a heap-allocated COM object by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3043unexpected_cfgs
by @ChrisDenton in https://github.com/microsoft/windows-rs/pull/3050no-default-features
yml workflow by @kennykerr in https://github.com/microsoft/windows-rs/pull/3053windows-registry
value iterator by @kennykerr in https://github.com/microsoft/windows-rs/pull/3052windows-2022
hosted runners by @kennykerr in https://github.com/microsoft/windows-rs/pull/3056cppwinrt
crate and sample by @kennykerr in https://github.com/microsoft/windows-rs/pull/3054IInspectable
implementation by @kennykerr in https://github.com/microsoft/windows-rs/pull/3057unused_qualifications
entirely by @kennykerr in https://github.com/microsoft/windows-rs/pull/3078IUnknown
identity checks by @sivadeilra in https://github.com/microsoft/windows-rs/pull/3073noexcept
support by @kennykerr in https://github.com/microsoft/windows-rs/pull/3070New Contributors
Full Changelog: microsoft/windows-rs@0.56.0...0.57.0
v0.56.0
Compare Source
This release includes updates to all crates except
windows-sys
.It includes major updates to the following:
riddle
0.56.0windows
0.56.0windows-bindgen
0.56.0windows-core
0.56.0windows-implement
0.56.0windows-interface
0.56.0windows-metadata
0.56.0This includes various improvements and fixes to code generation, compliance with new Rust warnings, Arm64EC bindings, as well as ergonomic improvements. The
riddle
crate in particular now matches the version ofwindows-bindgen
as they are inextricably linked.It includes minor updates to the following:
windows-targets
0.52.5windows-result
0.1.1windows-registry
0.1.1windows-version
0.1.1The
windows-targets
crate adds support forarm64ec-pc-windows-msvc
andi686-pc-windows-gnullvm
. The other crates only update dependencies.What's Changed
windows
crate dependency inimplement
andinterface
macros by @kennykerr in https://github.com/microsoft/windows-rs/pull/2917Configuration
📅 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.