Bump strum from 0.24.1 to 0.27.2
Type: Pull Request
State: Merged
Association: Contributor
Comments: 1
(4 months ago)
(4 months ago)
(4 months ago)
by timkpaine
part: dependencies lang: rust
Bumps strum from 0.24.1 to 0.27.2.
Release notes
Sourced from strum's releases.
v0.27.2
What's Changed
- Adding support for doc comments on
EnumDiscriminantsgenerated type… by@linclelinkpart5in Peternator7/strum#141- Drop needless
rustversiondependency by@paolobarboliniin Peternator7/strum#446- Upgrade
phfto v0.12 by@paolobarboliniin Peternator7/strum#448- allow discriminants on empty enum by
@crop2000in Peternator7/strum#435- Remove broken link to EnumTable docs by
@schneemsin Peternator7/strum#427- Change enum table callbacks to FnMut. by
@ClaytonKnittelin Peternator7/strum#443- Add
#[automatically_derived]to theimpls by@dandedotdevin Peternator7/strum#444- Implement a
suffixattribute for serialization of enum variants by@amogh-dambalin Peternator7/strum#440- Expound upon use_phf docs by
@Peternator7in Peternator7/strum#449New Contributors
@paolobarbolinimade their first contribution in Peternator7/strum#446@crop2000made their first contribution in Peternator7/strum#435@schneemsmade their first contribution in Peternator7/strum#427@ClaytonKnittelmade their first contribution in Peternator7/strum#443@dandedotdevmade their first contribution in Peternator7/strum#444@amogh-dambalmade their first contribution in Peternator7/strum#440Full Changelog: https://github.com/Peternator7/strum/compare/v0.27.1...v0.27.2
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
... (truncated)
Changelog
Sourced from strum's changelog.
0.27.2
#141: Adding support for doc comments on
EnumDiscriminantsgenerated type.
- The doc comment will be copied from the variant on the type itself.
#435:allow discriminants on empty enum.
#443: Change enum table callbacks to FnMut.
#444: Add
#[automatically_derived]to theimpls by@dandedotdevin Peternator7/strum#444
- This should make the linter less noisy with warnings in generated code.
#440: Implement a
suffixattribute for serialization of enum variants.#[derive(strum::Display)] #[strum(suffix=".json")] #[strum(serialize_all="snake_case")] enum StorageConfiguration { PostgresProvider, S3StorageProvider, AzureStorageProvider, }fn main() { let response = SurveyResponse::Other("It was good".into()); println!("Loading configuration from: {}", StorageConfiguration::PostgresProvider); // prints: Loaded Configuration from: postgres_provider.json }
#446: Drop needless
rustversiondependency.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?");
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)
Pull Request Statistics
1
2
+3
-3
Package Dependencies
Technical Details
| ID: | 6257101 |
| UUID: | 2788672334 |
| Node ID: | PR_kwDOJy3j7s6mN8NO |
| Host: | GitHub |
| Repository: | python-project-templates/python-template-rust |
| Merge State: | Unknown |