diff --git a/Cargo.lock b/Cargo.lock index ada25a4e6..26b191c15 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "bitflags" -version = "1.3.2" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84" [[package]] name = "clock_ticks" diff --git a/Cargo.toml b/Cargo.toml index 802bc1329..d80ecbc62 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ exclude = ["Gir*.toml", "tests/**/*", "*.md", "generator.py"] edition = "2021" [dependencies] -bitflags = "1.0" +bitflags = "2.2" getopts = "0.2.21" getter_rules = { package = "fix-getters-rules", version = "0.3.0", default-features = false } xml-rs = "0.8" diff --git a/book/src/tutorial/high_level_rust_api.md b/book/src/tutorial/high_level_rust_api.md index 06a3a0732..5af169882 100644 --- a/book/src/tutorial/high_level_rust_api.md +++ b/book/src/tutorial/high_level_rust_api.md @@ -28,7 +28,7 @@ For our example, this results in the following dependencies: ```toml [dependencies] libc = "0.2" -bitflags = "1.0" +bitflags = "2.2" [dependencies.ffi] package = "pango-sys" diff --git a/src/config/property_generate_flags.rs b/src/config/property_generate_flags.rs index 4be75a368..b26433ff9 100644 --- a/src/config/property_generate_flags.rs +++ b/src/config/property_generate_flags.rs @@ -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; diff --git a/tests/sys/atk-sys/Cargo.toml b/tests/sys/atk-sys/Cargo.toml index 9ccf9e87e..604fc59d3 100644 --- a/tests/sys/atk-sys/Cargo.toml +++ b/tests/sys/atk-sys/Cargo.toml @@ -3,7 +3,7 @@ pkg-config = "0.3.7" system-deps = "6" [dependencies] -bitflags = "1.0" +bitflags = "2.2" libc = "0.2" [dependencies.glib] diff --git a/tests/sys/gdk-pixbuf-sys/Cargo.toml b/tests/sys/gdk-pixbuf-sys/Cargo.toml index beae5b9ff..915f32a19 100644 --- a/tests/sys/gdk-pixbuf-sys/Cargo.toml +++ b/tests/sys/gdk-pixbuf-sys/Cargo.toml @@ -3,7 +3,7 @@ pkg-config = "0.3.7" system-deps = "6" [dependencies] -bitflags = "1.0" +bitflags = "2.2" libc = "0.2" [dependencies.gio] diff --git a/tests/sys/gdk-sys/Cargo.toml b/tests/sys/gdk-sys/Cargo.toml index c573826c1..82fa927f3 100644 --- a/tests/sys/gdk-sys/Cargo.toml +++ b/tests/sys/gdk-sys/Cargo.toml @@ -3,7 +3,7 @@ pkg-config = "0.3.7" system-deps = "6" [dependencies] -bitflags = "1.0" +bitflags = "2.2" libc = "0.2" [dependencies.cairo] diff --git a/tests/sys/gio-sys/Cargo.toml b/tests/sys/gio-sys/Cargo.toml index 98344ad5b..20f32dd8e 100644 --- a/tests/sys/gio-sys/Cargo.toml +++ b/tests/sys/gio-sys/Cargo.toml @@ -3,7 +3,7 @@ pkg-config = "0.3.7" system-deps = "6" [dependencies] -bitflags = "1.0" +bitflags = "2.2" libc = "0.2" [dependencies.glib] diff --git a/tests/sys/glib-sys/Cargo.toml b/tests/sys/glib-sys/Cargo.toml index c966a05fa..12930adcb 100644 --- a/tests/sys/glib-sys/Cargo.toml +++ b/tests/sys/glib-sys/Cargo.toml @@ -3,7 +3,7 @@ pkg-config = "0.3.7" system-deps = "6" [dependencies] -bitflags = "1.0" +bitflags = "2.2" libc = "0.2" [features] diff --git a/tests/sys/gobject-sys/Cargo.toml b/tests/sys/gobject-sys/Cargo.toml index 8fb06a697..a2d2456e8 100644 --- a/tests/sys/gobject-sys/Cargo.toml +++ b/tests/sys/gobject-sys/Cargo.toml @@ -3,7 +3,7 @@ pkg-config = "0.3.7" system-deps = "6" [dependencies] -bitflags = "1.0" +bitflags = "2.2" libc = "0.2" [dependencies.glib] diff --git a/tests/sys/gtk-sys/Cargo.toml b/tests/sys/gtk-sys/Cargo.toml index 4dbcae4a3..4e2f232e9 100644 --- a/tests/sys/gtk-sys/Cargo.toml +++ b/tests/sys/gtk-sys/Cargo.toml @@ -3,7 +3,7 @@ pkg-config = "0.3.7" system-deps = "6" [dependencies] -bitflags = "1.0" +bitflags = "2.2" libc = "0.2" [dependencies.atk] diff --git a/tests/sys/pango-sys/Cargo.toml b/tests/sys/pango-sys/Cargo.toml index d1b8b74c8..9dcf5cb20 100644 --- a/tests/sys/pango-sys/Cargo.toml +++ b/tests/sys/pango-sys/Cargo.toml @@ -3,7 +3,7 @@ pkg-config = "0.3.7" system-deps = "6" [dependencies] -bitflags = "1.0" +bitflags = "2.2" libc = "0.2" [dependencies.glib]