chore(deps): update rust crate strum to 0.27.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
strum | workspace.dependencies | minor |
0.26.3 -> 0.27.0
|
Release Notes
Peternator7/strum (strum)
v0.27.1
-
#414: Fix docrs build error.
-
#417: Mention
parse_error_ty
andparse_error_fn
that had been left out of the docs accidentally. -
#421#331: Implement
#[strum(transparent)]
attribute onIntoStaticStr
,Display
andAsRefStr
that forwards the implmenentation to the inner value. Note that for static strings, the inner value must be convertible to an&'static str
.#[derive(strum::Display)] enum SurveyResponse { Yes, No, #[strum(transparent)] Other(String) } fn main() { let response = SurveyResponse::Other("It was good".into()); println!("Question: Did you have fun?"); println!("Answer: {}", response); // prints: Answer: It was good }
v0.27.0
Highlights
-
#407:
Display
is now correctly derived in[no_std]
projects. -
#402:
EnumIter
now implementsSend + Sync
-
#400:
EnumTryAs
now handles attributes on variant fields correctly. -
#398:
strum
is now on rust 2021 -
#391:
EnumProperties
correctly implementsget_bool
andget_int
finally. -
#380:
FromString
now supports 2 additional attributes,parse_error_ty
andparse_error_fn
that can be added to use a custom error type rather than the default strum error message.-
#410: These attributes accept a
Path
rather than aString
to improve behavior with rust-analyzer.
-
#410: These attributes accept a
Breaking Changes
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Merge request reports
Activity
Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this MR as-is.
Renovate will retry this branch, including artifacts, only when one of the following happens:- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this MR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package strum@0.26.3 --precise 0.27.1 Updating crates.io index error: failed to select a version for the requirement `strum = "^0.26.3"` candidate versions found which didn't match: 0.27.1 location searched: crates.io index required by package `rustainers v0.15.0` ... which satisfies dependency `rustainers = "^0.15"` (locked to 0.15.0) of package `nethsm v0.7.3 (/builds/archlinux/renovate/renovate/renovate/repos/gitlab/archlinux/signstar/nethsm)`
Edited by renovatementioned in issue #21
added 2 commits
added 2 commits
added 2 commits
added 2 commits
added 3 commits
-
fd391ea3...264045aa - 2 commits from branch
main
- dac218b6 - chore(deps): update rust crate strum to 0.27.0
-
fd391ea3...264045aa - 2 commits from branch
added 3 commits
-
dac218b6...f52204b7 - 2 commits from branch
main
- 3baa3184 - chore(deps): update rust crate strum to 0.27.0
-
dac218b6...f52204b7 - 2 commits from branch
added 2 commits
added 2 commits
added 2 commits
added 2 commits
added 2 commits
added 9 commits
-
9213b7d2...8aa10044 - 8 commits from branch
main
- 4f81fff0 - chore(deps): update rust crate strum to 0.27.0
-
9213b7d2...8aa10044 - 8 commits from branch
added 2 commits
added 3 commits
-
742b9ab7...07bb594b - 2 commits from branch
main
- 77d823eb - chore(deps): update rust crate strum to 0.27.0
-
742b9ab7...07bb594b - 2 commits from branch
added 3 commits
-
77d823eb...a80418dd - 2 commits from branch
main
- a66a9e0b - chore(deps): update rust crate strum to 0.27.0
-
77d823eb...a80418dd - 2 commits from branch
enabled an automatic merge when all merge checks for a66a9e0b pass