Skip to content

Commit 3ea5d17

Browse files
authored
Update the bitflags to 2.2.1. (#2512)
1 parent 39b6612 commit 3ea5d17

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
properly generate module names and paths that include spaces by escaping
184184
them. To make the escaping clear and consistent, backslashes are also
185185
escaped.
186+
* Updated `bitflags` dependency to 2.2.1. This changes the API of `CodegenConfig`.
186187

187188
## Removed
188189

Cargo.lock

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ name = "bindgen"
2525
path = "lib.rs"
2626

2727
[dependencies]
28-
bitflags = "1.0.3"
28+
bitflags = "2.2.1"
2929
cexpr = "0.6"
3030
clang-sys = { version = "1", features = ["clang_6_0"] }
3131
lazycell = "1"

bindgen/codegen/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ fn root_import(
126126
}
127127

128128
bitflags! {
129+
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
129130
struct DerivableTraits: u16 {
130131
const DEBUG = 1 << 0;
131132
const DEFAULT = 1 << 1;

bindgen/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ fn args_are_cpp(clang_args: &[String]) -> bool {
109109

110110
bitflags! {
111111
/// A type used to indicate which kind of items we have to generate.
112+
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
112113
pub struct CodegenConfig: u32 {
113114
/// Whether to generate functions.
114115
const FUNCTIONS = 1 << 0;

0 commit comments

Comments
 (0)