Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rust - all minor and patch updates #159

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 16, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
clap workspace.dependencies minor 4.4.17 -> 4.5.0
pest (source) workspace.dependencies patch 2.7.6 -> 2.7.7
pest_derive (source) workspace.dependencies patch 2.7.6 -> 2.7.7
serde (source) workspace.dependencies patch 1.0.195 -> 1.0.196
serde_json workspace.dependencies patch 1.0.111 -> 1.0.113
strum workspace.dependencies minor 0.25.0 -> 0.26.1
strum_macros workspace.dependencies minor 0.25.3 -> 0.26.1
thiserror workspace.dependencies patch 1.0.56 -> 1.0.57

Release Notes

clap-rs/clap (clap)

v4.5.0

Compare Source

Compatibility
  • Update MSRV to 1.74

v4.4.18

Compare Source

Fixes
  • (error) When lacking usage feature, ensure the list of required arguments is unique
pest-parser/pest (pest)

v2.7.7

Compare Source

What's Changed
New Contributors

Full Changelog: pest-parser/pest@v2.7.6...v2.7.7

Warning: Semantic Versioning

Note that the node tag feature in 2.6.0 was a technically semver-breaking change even though it is a backwards-compatible / non-breaking change in the meta-grammar. There may be similar non-breaking changes to the meta-grammar between minor versions in the future. These non-breaking changes, however, may translate into semver-breaking changes due to the additional variants propagated from the generated Rule enum.

This new feature caused issues in some Cargo version resolution situations where Cargo mixed different versions of pest dependencies. For this reason, these "grammar non-breaking but semver-breaking" changes are now available only under the "grammar-extras" feature flag. If you would like to use node tags (or other future grammar features), you can do so by enabling this flag on the pest_derive crate in your Cargo.toml:

...
pest_derive = { version = "2.7", features = ["grammar-extras"] }
serde-rs/serde (serde)

v1.0.196

Compare Source

  • Improve formatting of "invalid type" error messages involving floats (#​2682)
serde-rs/json (serde_json)

v1.0.113

Compare Source

  • Add swap_remove and shift_remove methods on Map (#​1109)

v1.0.112

Compare Source

  • Improve formatting of "invalid type" error messages involving floats (#​1107)
Peternator7/strum (strum)

v0.26.1

  • #​325: use core instead of std in VariantArray.

v0.26.0

Breaking Changes
  • The EnumVariantNames macro has been renamed VariantNames. The deprecation warning should steer you in
    the right direction for fixing the warning.
  • The Iterator struct generated by EnumIter now has new bounds on it. This shouldn't break code unless you manually
    added the implementation in your code.
  • Display now supports format strings using named fields in the enum variant. This should be a no-op for most code.
    However, if you were outputting a string like "Hello {field}", this will now be interpretted as a format string.
  • EnumDiscriminant now inherits the repr and discriminant values from your main enum. This makes the discriminant type
    closer to a mirror of the original and that's always the goal.
New features
  • The VariantArray macro has been added. This macro adds an associated constant VARIANTS to your enum. The constant
    is a &'static [Self] slice so that you can access all the variants of your enum. This only works on enums that only
    have unit variants.

    use strum::VariantArray;
    
    #[derive(Debug, VariantArray)]
    enum Color {
      Red,
      Blue,
      Green,
    }
    
    fn main() {
      println!("{:?}", Color::VARIANTS); // prints: ["Red", "Blue", "Green"]
    }
  • The EnumTable macro has been experimentally added. This macro adds a new type that stores an item for each variant
    of the enum. This is useful for storing a value for each variant of an enum. This is an experimental feature because
    I'm not convinced the current api surface area is correct.

    use strum::EnumTable;
    
    #[derive(Copy, Clone, Debug, EnumTable)]
    enum Color {
      Red,
      Blue,
      Green,
    }
    
    fn main() {
      let mut counts = ColorTable::filled(0);
      for color in &[Color::Red, Color::Red, Color::Green]] {
        counts[color] += 1;
      }
    
      assert_eq!(counts[Color::Red], 2);
      assert_eq!(counts[Color::Blue], 0);
      assert_eq!(counts[Color::Green], 1);
    }
  • Display has 2 new features:

    • the strum(prefix = "some_value") attribute on an enum now allows you to prepend a string onto every
      variant when you serialize it.

    • Custom to_string and serialize attributes now support string interopolation on serialization.

PR's Merged
  • #​322: avoid collisions on std::fmt::Debug
  • #​321: avoid conflicts with consecutive underscores.
  • #​314: add additional bounds to EnumIterator
  • #​311: add FusedIterator bounds to EnumIterator
  • #​297: New macro, add VariantArray
  • #​296: adds prefix attribute to To/From String macros.
  • #​294: use named enum fields in to_string macro.
  • #​288: discriminant enums now inherit the repr from the original enum.
  • #​279: Add EnumTable macro to generate a mapping between fieldless variants and data.
dtolnay/thiserror (thiserror)

v1.0.57

Compare Source

  • Generate more efficient Display impl for error message which do not contain any interpolated value (#​286, thanks @​nyurik)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/London.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from n3op2 as a code owner January 16, 2024 21:53
@renovate renovate bot force-pushed the renovate/rust-all-minor-and-patch-updates branch from c4ea304 to b0d0e05 Compare January 17, 2024 22:11
@renovate renovate bot force-pushed the renovate/rust-all-minor-and-patch-updates branch from b0d0e05 to f56a88f Compare January 31, 2024 02:29
@renovate renovate bot changed the title Update Rust crate clap to 4.4.18 Update rust - all minor and patch updates Jan 31, 2024
@renovate renovate bot force-pushed the renovate/rust-all-minor-and-patch-updates branch 2 times, most recently from ab6c070 to 3d67959 Compare February 5, 2024 09:18
@renovate renovate bot force-pushed the renovate/rust-all-minor-and-patch-updates branch from 3d67959 to 932581a Compare February 8, 2024 18:30
@renovate renovate bot force-pushed the renovate/rust-all-minor-and-patch-updates branch from 932581a to b502b22 Compare February 11, 2024 21:55
Copy link
Contributor Author

renovate bot commented Feb 12, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@mattdean-digicatapult mattdean-digicatapult merged commit 6b203f6 into main Feb 12, 2024
8 checks passed
@mattdean-digicatapult mattdean-digicatapult deleted the renovate/rust-all-minor-and-patch-updates branch February 12, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants