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 crate windows-bindgen to ^0.61.0 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 9, 2025

This PR contains the following updates:

Package Type Update Change
windows-bindgen workspace.dependencies minor ^0.60.0 -> ^0.61.0

Release Notes

microsoft/windows-rs (windows-bindgen)

v0.61.0

Compare Source

Major crate updates:

  • windows 0.59.0
  • windows-core 0.59.0
    • windows-implement 0.59.0
    • windows-interface 0.59.0
  • windows-targets 0.53.0
    • windows_i686_msvc 0.53.0
    • windows_x86_64_msvc 0.53.0
    • windows_aarch64_msvc 0.53.0
    • windows_i686_gnu 0.53.0
    • windows_x86_64_gnu 0.53.0
    • windows_i686_gnullvm 0.53.0
    • windows_x86_64_gnullvm 0.53.0
    • windows_aarch64_gnullvm 0.53.0
  • windows-bindgen 0.59.0
  • windows-registry 0.4.0
  • windows-result 0.3.0
  • windows-strings 0.3.0
  • cppwinrt 0.2.0

Minor crate updates:

  • windows-version 0.1.2

Excluded:

  • windows-sys 0.59.0

Things to keep in mind:

  • The tag/release names no longer map directly to the crate versions, so to find samples for a particular release requires looking at the releases page and finding the release that most recently updated a particular crate.

  • The windows-bindgen crate includes the major code generation overhaul that brings many improvements - be sure to check out the PR description for more information. The resulting code gen depends on the new version of windows-core and its dependencies, unless you include the --sys option. #​3359

  • The cppwinrt crate constitutes a major update due to streamlining the error handling. #​3415

  • The windows-registry, windows-strings, and windows-result crates are also major version updates since they include small breaking changes.

  • The windows-targets crate finally receives a major version update, the first in over a year. This is due to #​3359 and #​3342 potentially introducing breaking changes. Although unlikely, these updates introduced sufficient changes that make it hard to ensure that the windows-targets libs don't break existing code. As we're updating windows-targets anyway, I took the liberty to bump the MSRV to 1.60 - to match the latest version of windows-sys - and remove the old but unused doc macro feature. Both remained for compatibility with very old dependents of the windows-targets crate.

  • The windows-version crate receives a minor update to update its dependency on the windows-targets crate.

  • Beyond these specifics, this update is the culmination of around 6 months worth of work on the windows-rs project. The biggest improvements comes from the new code generation engine, but many other improvements are now also available for production. This includes support for many new lints, warnings, and suggestions provided by the Rust toolchain; much smaller code gen thanks to deriving many more traits; more efficient code gen; major improvements to WinRT type system and implementation support; more robust and consistent error handling; stock collection and async support; improved support for class hierarchies; and much more!

In addition to "what's changed" below, check out what's changed for notes for 0.60.0 and 0.59.0 for additional changes that roll up to the crates published as part of this release.

What's Changed
New Contributors

Full Changelog: microsoft/windows-rs@0.60.0...0.61.0


Configuration

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

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

Rebasing: Whenever PR becomes conflicted, 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 9, 2025

Reviewer's Guide by Sourcery

This PR updates the windows-bindgen crate from version 0.58 to 0.59. This update includes support for Arm64EC, updated bindings for the latest APIs, derived standard traits, updates to code generation, a smaller crate size, more efficient code generation, support for feature search, and an updated MSRV to 1.60.

Class diagram showing Windows-bindgen improvements in v0.59

Loading
classDiagram
    class WindowsBindgen {
        +generate_bindings()
        +compile()
    }

    class Features {
        +search_features()
        +get_available_features()
    }

    class CodeGen {
        +generate_arm64ec()
        +handle_rust_warnings()
        +optimize_output()
    }

    WindowsBindgen --> Features
    WindowsBindgen --> CodeGen

    note for WindowsBindgen "Updated to v0.59"
    note for CodeGen "New Arm64EC support"
    note for Features "New feature search capability"

File-Level Changes

Change Details Files
Updated the windows-bindgen crate to version 0.59.
  • Changed the windows-bindgen dependency version from 0.58 to 0.59 in Cargo.toml.
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.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a 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. You can also use
    this command to specify where the summary should be inserted.

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 changed the title Update Rust crate windows-bindgen to 0.59 Update Rust crate windows-bindgen to 0.60 Feb 22, 2025
@renovate renovate bot force-pushed the renovate/windows-bindgen-0.x branch from 5ccdd8d to 2aa44e5 Compare February 22, 2025 03:29
@renovate renovate bot changed the title Update Rust crate windows-bindgen to 0.60 Update Rust crate windows-bindgen to 0.60 - autoclosed Mar 16, 2025
@renovate renovate bot closed this Mar 16, 2025
@renovate renovate bot deleted the renovate/windows-bindgen-0.x branch March 16, 2025 17:45
@renovate renovate bot changed the title Update Rust crate windows-bindgen to 0.60 - autoclosed Update Rust crate windows-bindgen to 0.60 Mar 20, 2025
@renovate renovate bot reopened this Mar 20, 2025
@renovate renovate bot force-pushed the renovate/windows-bindgen-0.x branch from ccfbb1e to 2aa44e5 Compare March 20, 2025 00:14
@renovate renovate bot changed the title Update Rust crate windows-bindgen to 0.60 Update Rust crate windows-bindgen to ^0.61.0 Mar 20, 2025
@renovate renovate bot force-pushed the renovate/windows-bindgen-0.x branch from 2aa44e5 to e956eab Compare March 21, 2025 23:58
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