Skip to content

Commit

Permalink
Merge pull request #299 from KodrAus/cargo/2.0.0-rc.2
Browse files Browse the repository at this point in the history
Prepare for 2.0.0-rc.2 release
  • Loading branch information
KodrAus committed Feb 10, 2023
2 parents 36d3c01 + 15faf2e commit 0b84e40
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,27 @@
# 2.0.0-rc.2

## Changes to `serde` serialization

**⚠️ NOTE ⚠️** This release changes the default serialization you'll get 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 behavior, see the [`bitflags-serde-legacy`](https://github.com/KodrAus/bitflags-serde-legacy) library.

## What's Changed

* Add missing "if" to contains doc-comment in traits.rs by @rusty-snake in https://github.com/bitflags/bitflags/pull/291
* Forbid unsafe_code by @fintelia in https://github.com/bitflags/bitflags/pull/294
* serde: enable no-std support by @nim65s in https://github.com/bitflags/bitflags/pull/296
* Add a parser for flags formatted as bar-separated-values by @KodrAus in https://github.com/bitflags/bitflags/pull/297

## New Contributors
* @rusty-snake made their first contribution in https://github.com/bitflags/bitflags/pull/291
* @fintelia made their first contribution in https://github.com/bitflags/bitflags/pull/294
* @nim65s made their first contribution in https://github.com/bitflags/bitflags/pull/296

**Full Changelog**: https://github.com/bitflags/bitflags/compare/2.0.0-rc.1...2.0.0-rc.2

# 2.0.0-rc.1

This is a big release including a few years worth of work on a new `BitFlags` trait, iteration, and better macro organization for future extensibility.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "bitflags"
# NB: When modifying, also modify:
# 1. html_root_url in lib.rs
# 2. number in readme (for breaking changes)
version = "2.0.0-rc.1"
version = "2.0.0-rc.2"
edition = "2018"
authors = ["The Rust Project Developers"]
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
bitflags = "2.0.0-rc.1"
bitflags = "2.0.0-rc.2"
```

and this to your source code:
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -344,7 +344,7 @@
//! ```

#![cfg_attr(not(any(feature = "std", test)), no_std)]
#![doc(html_root_url = "https://docs.rs/bitflags/2.0.0-rc.1")]
#![doc(html_root_url = "https://docs.rs/bitflags/2.0.0-rc.2")]
#![forbid(unsafe_code)]

#[doc(inline)]
Expand Down

0 comments on commit 0b84e40

Please sign in to comment.