Skip to content

Commit

Permalink
Update the bitflags to 2.2.1. (#2512)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwandor authored Apr 27, 2023
1 parent 39b6612 commit 3ea5d17
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
properly generate module names and paths that include spaces by escaping
them. To make the escaping clear and consistent, backslashes are also
escaped.
* Updated `bitflags` dependency to 2.2.1. This changes the API of `CodegenConfig`.

## Removed

Expand Down
14 changes: 10 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name = "bindgen"
path = "lib.rs"

[dependencies]
bitflags = "1.0.3"
bitflags = "2.2.1"
cexpr = "0.6"
clang-sys = { version = "1", features = ["clang_6_0"] }
lazycell = "1"
Expand Down
1 change: 1 addition & 0 deletions bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ fn root_import(
}

bitflags! {
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
struct DerivableTraits: u16 {
const DEBUG = 1 << 0;
const DEFAULT = 1 << 1;
Expand Down
1 change: 1 addition & 0 deletions bindgen/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ fn args_are_cpp(clang_args: &[String]) -> bool {

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

0 comments on commit 3ea5d17

Please sign in to comment.