Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 29, 2025

This PR contains the following updates:

Package Type Update Change
wmi dependencies minor 0.14.0 -> 0.15.0

Release Notes

ohadravid/wmi-rs (wmi)

v0.15.0

Compare Source

What's Changed

Example for newtype structs:

#[derive(Deserialize, Debug)]
struct Win32_OperatingSystem(pub HashMap<String, Variant>);

let system = wmi_con.query::<Win32_OperatingSystem>().unwrap();

Example for serde flatten:

#[derive(Deserialize, Debug)]
struct Win32_OperatingSystem {
    Caption: String,
    Name: String,

    #[serde(flatten)]
    extra: HashMap<String, Variant>,
}

#[derive(Deserialize, Debug)]

#[serde(rename = "Win32_OperatingSystem")]
struct Win32_OperatingSystemWrapper(pub Win32_OperatingSystem);
let system = wmi_con.query::<Win32_OperatingSystemWrapper>().unwrap();

Breaking Changes:

  • The struct_name_and_fields function now returns an Option for the struct's fields (which is None in case of a newtype struct).

Full Changelog: ohadravid/wmi-rs@v0.14.5...v0.15.0

v0.14.5

Compare Source

What's Changed

Full Changelog: ohadravid/wmi-rs@v0.14.4...v0.14.5

v0.14.4

Compare Source

What's Changed

Full Changelog: ohadravid/wmi-rs@v0.14.3...v0.14.4

v0.14.3

Compare Source

What's Changed

Example:

let in_params = CreateParams {
    CommandLine: "calc.exe".to_string(),
};
let out = wmi_con
    .exec_class_method::<Win32_Process, CreateParams, CreateOutput>("Create", in_params)
    .unwrap();

assert_eq!(out.ReturnValue, 0);

New Contributors

Full Changelog: ohadravid/wmi-rs@v0.14.2...v0.14.3

v0.14.2

Compare Source

What's Changed

Full Changelog: ohadravid/wmi-rs@v0.14.1...v0.14.2

v0.14.1

Compare Source

What's Changed

New Contributors

Full Changelog: ohadravid/wmi-rs@v0.14.0...v0.14.1


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

This PR was generated by Mend Renovate. View the repository job log.

Copy link

sourcery-ai bot commented Jan 29, 2025

Reviewer's Guide by Sourcery

This pull request updates the wmi crate from version 0.14.0 to 0.15.0. This update includes support for newtype structs and serde flatten.

Class diagram showing the new struct types in wmi 0.15.0

classDiagram
    class Win32_OperatingSystem {
        +String Caption
        +String Name
        +HashMap~String,Variant~ extra
    }

    class Win32_OperatingSystemWrapper {
        +Win32_OperatingSystem os
    }

    class NewtypeOS {
        +HashMap~String,Variant~ data
    }

    Win32_OperatingSystemWrapper --> Win32_OperatingSystem : contains

    note for Win32_OperatingSystem "New flattened structure with extra fields"
    note for Win32_OperatingSystemWrapper "New wrapper type with serde rename"
    note for NewtypeOS "New newtype struct support"
Loading

File-Level Changes

Change Details Files
Updated the wmi crate dependency to version 0.15.0.
  • Updated the wmi crate version from 0.14.0 to 0.15.0 in the Cargo.toml file
wmi_execute/Cargo.toml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

@renovate renovate bot merged commit 2b25fb7 into main Jan 29, 2025
14 checks passed
@renovate renovate bot deleted the renovate/wmi-0.x branch January 29, 2025 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants