monkey-rust
monkey-rust copied to clipboard
chore(deps): bump strum_macros from 0.26.2 to 0.27.1
Bumps strum_macros from 0.26.2 to 0.27.1.
Release notes
Sourced from strum_macros's releases.
v0.27.1
What's Changed
- Fix docsrs build error regarding IntoDiscriminant trait by
@tvenessin Peternator7/strum#414- Update docs to actually include new features by
@Peternator7in Peternator7/strum#417- Use _ to silence warnings about unused fields by
@Peternator7in Peternator7/strum#418- Add
#[strum(transparent)]attribute by@bobozaurin Peternator7/strum#331- Fix warnings in tests from variants by
@Peternator7in Peternator7/strum#419- Peternator7/fix transparent typo by
@Peternator7in Peternator7/strum#421New Contributors
@tvenessmade their first contribution in Peternator7/strum#414@bobozaurmade their first contribution in Peternator7/strum#331Full Changelog: https://github.com/Peternator7/strum/compare/v0.27.0...v0.27.1
v0.27.0
What's Changed
- Fix the unconditional usage of string interpolation in strum by
@Peternator7in Peternator7/strum#360- fix: require strum_macros 0.26.3 by
@joshkain Peternator7/strum#365- docs(strum_macros): fix word error in doc by
@leaf-potatoin Peternator7/strum#370- Add EnumDiscriminants Trait and related Macro impl by
@vpochapuisin Peternator7/strum#377- macros: Stop using syn's extra-traits feature by
@svix-jplattein Peternator7/strum#378- docs(strum_macros): fix typo in
enum_iterdocs by@cenviityin Peternator7/strum#387- Inline generated functions by
@marc0246in Peternator7/strum#389- Peternator7/update msrv to 1.66.1 by
@Peternator7in Peternator7/strum#384- Update appveyor.yml to VS 2022 by
@Peternator7in Peternator7/strum#383- feat: FromStr derive could support setting the error type by
@JimChenWYUin Peternator7/strum#380- Add support for
const_into_strattribute to enable static string conversions in const contexts by@biryukovmaximin Peternator7/strum#353- fix typo by
@JimChenWYUin Peternator7/strum#393- Implement
get_int/get_boolfor properties by@marxinin Peternator7/strum#391- deps: bumped phf to 0.11 by
@jqnatividadin Peternator7/strum#401- Quality of life changes by
@MHS-0in Peternator7/strum#398- fix EnumTryAs to allow attributes on enum variant fields by
@phsymin Peternator7/strum#400- Using fn() -> T instead of T in the phantom data will make all EnumIterator types Send + Sync. by
@Peternator7in Peternator7/strum#402- Use asserts instead of println in Display docstrings by
@sukhmelin Peternator7/strum#403- Fix
Displaymacro in#![no_std]programs by@bugadaniin Peternator7/strum#407- Fix potential errors from vis diffs by
@Peternator7in Peternator7/strum#409- Use a "Path" instead of "String" for FromStr's error methods by
@Peternator7in Peternator7/strum#410- Per cargo docs, this should fix the circular dep when publishing strum by
@Peternator7in Peternator7/strum#411- Remove gnu toolchains from appveyor by
@Peternator7in Peternator7/strum#412New Contributors
@leaf-potatomade their first contribution in Peternator7/strum#370@vpochapuismade their first contribution in Peternator7/strum#377@svix-jplattemade their first contribution in Peternator7/strum#378@cenviitymade their first contribution in Peternator7/strum#387@marc0246made their first contribution in Peternator7/strum#389@JimChenWYUmade their first contribution in Peternator7/strum#380@biryukovmaximmade their first contribution in Peternator7/strum#353@marxinmade their first contribution in Peternator7/strum#391
... (truncated)
Changelog
Sourced from strum_macros's changelog.
0.27.1
#414: Fix docrs build error.
#417: Mention
parse_error_tyandparse_error_fnthat had been left out of the docs accidentally.#421#331: Implement
#[strum(transparent)]attribute onIntoStaticStr,DisplayandAsRefStrthat 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 }
0.27.0
Highlights
- #407:
Displayis now correctly derived in[no_std]projects.- #402:
EnumIternow implementsSend + Sync- #400:
EnumTryAsnow handles attributes on variant fields correctly.- #398:
strumis now on rust 2021- #391:
EnumPropertiescorrectly implementsget_boolandget_intfinally. 🎉- #380:
FromStringnow supports 2 additional attributes,parse_error_tyandparse_error_fnthat can be added to use a custom error type rather than the default strum error message.
- #410: These attributes accept a
Pathrather than aStringto improve behavior with rust-analyzer.Breaking Changes
- #384: MSRV is now 1.66.1
- #391:
EnumPropertiesdoesn't provide default implementations anymore. This would have required you to manually implement this trait which should be very uncommon.0.26.4 (strum_macros)
- #360: Fixes bug introduced with new string interpolation feature where
... (truncated)
Commits
85d0ae6Update versions to 0.27.1 everywhere1576a7aPeternator7/fix transparent typo (#421)23d2952Create ci.yml9c5fb56Fix warnings in tests from variants that need to exist, but don't get used (#...030d7b5Merge branch 'bobozaur-258-transparent-attr'7606dd5Do some light refactoring to combine similiar code paths togetherb6a357dMerge branch '258-transparent-attr' of https://github.com/bobozaur/strum into...24e7a4fUse _ to silence warnings (#418)4c1f6c1Update docs to actually include new features (#417)9db3c4dReplace IntoDiscriminant with EnumDiscriminants in macro exports, as (#414)- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.