Skip to content

Commit

Permalink
Merge pull request #1452 from sdroege/bitflags-2.0
Browse files Browse the repository at this point in the history
Update to bitflags 2.0
  • Loading branch information
sdroege committed Mar 14, 2023
2 parents d09789d + 68475b8 commit c405d37
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 69 deletions.
69 changes: 10 additions & 59 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 Cargo.toml
Expand Up @@ -11,7 +11,7 @@ exclude = ["Gir*.toml", "tests/**/*", "*.md", "generator.py"]
edition = "2021"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
getopts = "0.2.21"
getter_rules = { package = "fix-getters-rules", version = "0.3.0", default-features = false }
xml-rs = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion book/src/tutorial/high_level_rust_api.md
Expand Up @@ -24,7 +24,7 @@ For our example, this results in the following dependencies:
```toml
[dependencies]
libc = "0.2"
bitflags = "1.0"
bitflags = "2.0"

[dependencies.ffi]
package = "pango-sys"
Expand Down
1 change: 1 addition & 0 deletions src/codegen/flags.rs
Expand Up @@ -96,6 +96,7 @@ fn generate_flags(
if let Some(ref d) = config.derives {
derives(w, d, 1)?;
}
writeln!(w, " #[derive(Clone, Copy, Debug, PartialEq, Eq)]")?;

doc_alias(w, &flags.c_type, "", 1)?;
writeln!(
Expand Down
1 change: 1 addition & 0 deletions src/config/property_generate_flags.rs
Expand Up @@ -5,6 +5,7 @@ use bitflags::bitflags;
use super::error::TomlHelper;

bitflags! {
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct PropertyGenerateFlags: u32 {
const GET = 1;
const SET = 2;
Expand Down
2 changes: 1 addition & 1 deletion tests/sys/atk-sys/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ pkg-config = "0.3.7"
system-deps = "6"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
libc = "0.2"

[dependencies.glib]
Expand Down
2 changes: 1 addition & 1 deletion tests/sys/gdk-pixbuf-sys/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ pkg-config = "0.3.7"
system-deps = "6"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
libc = "0.2"

[dependencies.gio]
Expand Down
2 changes: 1 addition & 1 deletion tests/sys/gdk-sys/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ pkg-config = "0.3.7"
system-deps = "6"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
libc = "0.2"

[dependencies.cairo]
Expand Down
2 changes: 1 addition & 1 deletion tests/sys/gio-sys/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ pkg-config = "0.3.7"
system-deps = "6"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
libc = "0.2"

[dependencies.glib]
Expand Down
2 changes: 1 addition & 1 deletion tests/sys/glib-sys/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ pkg-config = "0.3.7"
system-deps = "6"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
libc = "0.2"

[features]
Expand Down
2 changes: 1 addition & 1 deletion tests/sys/gobject-sys/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ pkg-config = "0.3.7"
system-deps = "6"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
libc = "0.2"

[dependencies.glib]
Expand Down
2 changes: 1 addition & 1 deletion tests/sys/gtk-sys/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ pkg-config = "0.3.7"
system-deps = "6"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
libc = "0.2"

[dependencies.atk]
Expand Down
2 changes: 1 addition & 1 deletion tests/sys/pango-sys/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ pkg-config = "0.3.7"
system-deps = "6"

[dependencies]
bitflags = "1.0"
bitflags = "2.0"
libc = "0.2"

[dependencies.glib]
Expand Down

0 comments on commit c405d37

Please sign in to comment.