Skip to content

Bump bitflags from 1.3.2 to 2.0.1 in /src#2792

Merged
sporksmith merged 2 commits intomainfrom
dependabot/cargo/src/main/bitflags-2.0.1
Mar 20, 2023
Merged

Bump bitflags from 1.3.2 to 2.0.1 in /src#2792
sporksmith merged 2 commits intomainfrom
dependabot/cargo/src/main/bitflags-2.0.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 17, 2023

Bumps bitflags from 1.3.2 to 2.0.1.

Release notes

Sourced from bitflags's releases.

2.0.1

What's Changed

New Contributors

Full Changelog: bitflags/bitflags@2.0.0...2.0.1

2.0.0

Major changes

This release includes some major changes over 1.x. If you use bitflags! types in your public API then upgrading this library may cause breakage in your downstream users.

⚠️ Serialization

You'll need to add the serde Cargo feature in order to #[derive(Serialize, Deserialize] on your generated flags types.

The default serialization format with serde has changed if you #[derive(Serialize, Deserialize)] on your generated flags types. It will now use a formatted string for human-readable formats and the underlying bits type for compact formats.

To keep the old format, see the https://github.com/KodrAus/bitflags-serde-legacy library.

⚠️ Traits

Generated flags types now derive fewer traits. You'll need to derive the following yourself:

#[derive(PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy]

⚠️ Methods

The unsafe from_bits_unchecked method is now a safe from_bits_retain method.

You can add the following method to your generated types to keep them compatible:

#[deprecated = "use the safe `from_bits_retain` method instead"]
pub unsafe fn from_bits_unchecked(bits: T) -> Self {
    Self::from_bits_retain(bits)
}

where T is the underlying bits type you're using, such as u32.

What's Changed

... (truncated)

Changelog

Sourced from bitflags's changelog.

2.0.1

What's Changed

New Contributors

Full Changelog: bitflags/bitflags@2.0.0...2.0.1

2.0.0

What's Changed

New Contributors

... (truncated)

Commits
  • 8b43d2b Merge pull request #317 from KodrAus/cargo/2.0.1
  • 836eabb update changelog
  • 11de329 prepare for 2.0.1 release
  • af44dcc Merge pull request #316 from KodrAus/fix/multi-bit-flag-fmt
  • 5ba27cf use the iterator state as the source of extra bits
  • c4c13dc add repro for multi-bit flags
  • ad02711 Merge pull request #313 from tormeh/tormod/const-empty-flag
  • 242f5e7 Make empty_flag() const.
  • 2c12c2e Merge pull request #309 from bitflags/KodrAus-patch-3
  • d1d153b fix up some docs issues
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the Component: Build Build/install tools and dependencies label Mar 17, 2023
@dependabot dependabot bot added this to the Code health and maintenance milestone Mar 17, 2023
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Mar 17, 2023
@sporksmith sporksmith self-assigned this Mar 20, 2023
@sporksmith
Copy link
Copy Markdown
Contributor

Taking a look

dependabot bot and others added 2 commits March 20, 2023 09:56
Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.0.1.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](bitflags/bitflags@1.3.2...2.0.1)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Traits are no longer implicitly derived. We need to explicitly specify
the ones we need.
@sporksmith sporksmith force-pushed the dependabot/cargo/src/main/bitflags-2.0.1 branch from 8eccf41 to f011c5f Compare March 20, 2023 15:02
@sporksmith sporksmith enabled auto-merge March 20, 2023 15:06
@sporksmith sporksmith merged commit 0bbe846 into main Mar 20, 2023
@sporksmith sporksmith deleted the dependabot/cargo/src/main/bitflags-2.0.1 branch March 20, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Build Build/install tools and dependencies Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant