diff --git a/Cargo.lock b/Cargo.lock index d69885c0d7..976b888f6e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -106,7 +106,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc7ceabf6fc76511f616ca216b51398a2511f19ba9f71bcbd977999edff1b0d1" dependencies = [ "base64 0.21.4", - "bitflags 2.4.1", + "bitflags 2.4.2", "home", "libc", "log", @@ -1356,9 +1356,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.1" +version = "2.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" +checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" dependencies = [ "serde", ] @@ -1382,7 +1382,7 @@ source = "git+https://github.com/kvark/blade?rev=e9d93a4d41f3946a03ffb76136290d6 dependencies = [ "ash", "ash-window", - "bitflags 2.4.1", + "bitflags 2.4.2", "block", "bytemuck", "codespan-reporting", @@ -1643,7 +1643,7 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fba7adb4dd5aa98e5553510223000e7148f621165ec5f9acd7113f6ca4995298" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "log", "polling 3.3.2", "rustix 0.38.30", @@ -3471,7 +3471,7 @@ name = "feedback" version = "0.1.0" dependencies = [ "anyhow", - "bitflags 2.4.1", + "bitflags 2.4.2", "client", "db", "editor", @@ -3775,7 +3775,7 @@ dependencies = [ name = "fsevent" version = "2.0.2" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.2", "fsevent-sys 3.1.0", "parking_lot 0.11.2", "tempfile", @@ -4001,7 +4001,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "debugid", "fxhash", "serde", @@ -4153,7 +4153,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "gpu-alloc-types", ] @@ -4174,7 +4174,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", ] [[package]] @@ -5773,7 +5773,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae585df4b6514cf8842ac0f1ab4992edc975892704835b549cf818dc0191249e" dependencies = [ "bit-set", - "bitflags 2.4.1", + "bitflags 2.4.2", "codespan-reporting", "hexf-parse", "indexmap 2.0.0", @@ -5910,7 +5910,7 @@ version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "cfg-if 1.0.0", "libc", ] @@ -5964,7 +5964,7 @@ version = "6.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "crossbeam-channel", "filetime", "fsevent-sys 4.1.0", @@ -6279,7 +6279,7 @@ version = "0.10.57" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bac25ee399abb46215765b1cb35bc0212377e58a061560d8b29b024fd0430e7c" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "cfg-if 1.0.0", "foreign-types 0.3.2", "libc", @@ -7185,7 +7185,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dce76ce678ffc8e5675b22aa1405de0b7037e2fdf8913fea40d1926c6fe1e6e7" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "memchr", "unicase", ] @@ -7805,7 +7805,7 @@ version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "549b9d036d571d42e6e85d1c1425e2ac83491075078ca9a15be021c56b1641f2" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "fallible-iterator 0.2.0", "fallible-streaming-iterator", "hashlink", @@ -7905,7 +7905,7 @@ version = "0.38.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "errno", "itoa", "libc", @@ -8233,7 +8233,7 @@ name = "search" version = "0.1.0" dependencies = [ "anyhow", - "bitflags 1.3.2", + "bitflags 2.4.2", "client", "collections", "editor", @@ -8949,7 +8949,7 @@ dependencies = [ "atoi", "base64 0.21.4", "bigdecimal", - "bitflags 2.4.1", + "bitflags 2.4.2", "byteorder", "bytes 1.5.0", "chrono", @@ -8996,7 +8996,7 @@ dependencies = [ "atoi", "base64 0.21.4", "bigdecimal", - "bitflags 2.4.1", + "bitflags 2.4.2", "byteorder", "chrono", "crc", @@ -9324,7 +9324,7 @@ version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0682e006dd35771e392a6623ac180999a9a854b1d4a6c12fb2e804941c2b1f58" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "cap-fs-ext", "cap-std", "fd-lock", @@ -9918,7 +9918,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61c5bb1d698276a2443e5ecfabc1008bf15a36c12e6a7176e7bf089ea9131140" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "bytes 1.5.0", "futures-core", "futures-util", @@ -10896,7 +10896,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40eb22ae96f050e0c0d6f7ce43feeae26c348fc4dea56928ca81537cfaa6188b" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "cursor-icon", "log", "serde", @@ -10958,7 +10958,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "082a661fe31df4dbb34409f4835ad3d8ba65036bf74aaec9b21fde779978aba7" dependencies = [ "anyhow", - "bitflags 2.4.1", + "bitflags 2.4.2", "cap-fs-ext", "cap-rand", "cap-std", @@ -11083,7 +11083,7 @@ version = "0.121.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9dbe55c8f9d0dbd25d9447a5a889ff90c0cc3feaa7395310d3d826b2c703eaab" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "indexmap 2.0.0", "semver", ] @@ -11383,7 +11383,7 @@ checksum = "8f7d9cfaf9f70e83a164f5d772e376fafa2d7b7b0ca2ef88f9bcaf8b2363a38b" dependencies = [ "anyhow", "async-trait", - "bitflags 2.4.1", + "bitflags 2.4.2", "bytes 1.5.0", "cap-fs-ext", "cap-net-ext", @@ -11494,7 +11494,7 @@ version = "0.31.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "82fb96ee935c2cea6668ccb470fb7771f6215d1691746c2d896b447a00ad3f1f" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "rustix 0.38.30", "wayland-backend", "wayland-scanner", @@ -11506,7 +11506,7 @@ version = "0.31.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f81f365b8b4a97f422ac0e8737c438024b5951734506b0e1d775c73030561f4" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "wayland-backend", "wayland-client", "wayland-scanner", @@ -11621,7 +11621,7 @@ checksum = "454570f4fecadb881f0ba157e98b575a2850607a9eac79d8868f3ab70633f632" dependencies = [ "anyhow", "async-trait", - "bitflags 2.4.1", + "bitflags 2.4.2", "thiserror", "tracing", "wasmtime", @@ -11964,7 +11964,7 @@ version = "0.36.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9643b83820c0cd246ecabe5fa454dd04ba4fa67996369466d0747472d337346" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "windows-sys 0.52.0", ] @@ -11983,7 +11983,7 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5408d742fcdf418b766f23b2393f0f4d9b10b72b7cd96d9525626943593e8cc0" dependencies = [ - "bitflags 2.4.1", + "bitflags 2.4.2", "wit-bindgen-rust-macro", ] @@ -12031,7 +12031,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be60cd1b2ff7919305301d0c27528d4867bd793afe890ba3837743da9655d91b" dependencies = [ "anyhow", - "bitflags 2.4.1", + "bitflags 2.4.2", "indexmap 2.0.0", "log", "serde", diff --git a/Cargo.toml b/Cargo.toml index fa53be6645..b39dfbdad5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -195,6 +195,7 @@ anyhow = "1.0.57" async-compression = { version = "0.4", features = ["gzip", "futures-io"] } async-tar = "0.4.2" async-trait = "0.1" +bitflags = "2.4.2" blade-graphics = { git = "https://github.com/kvark/blade", rev = "e9d93a4d41f3946a03ffb76136290d6ccf7f2b80" } blade-macros = { git = "https://github.com/kvark/blade", rev = "e9d93a4d41f3946a03ffb76136290d6ccf7f2b80" } blade-rwh = { package = "raw-window-handle", version = "0.5" } diff --git a/crates/feedback/Cargo.toml b/crates/feedback/Cargo.toml index 6a52568924..b3c89e2c54 100644 --- a/crates/feedback/Cargo.toml +++ b/crates/feedback/Cargo.toml @@ -13,7 +13,7 @@ test-support = [] [dependencies] anyhow.workspace = true -bitflags = "2.4.1" +bitflags.workspace = true client.workspace = true db.workspace = true editor.workspace = true diff --git a/crates/fsevent/Cargo.toml b/crates/fsevent/Cargo.toml index a684fca867..23490e8fa5 100644 --- a/crates/fsevent/Cargo.toml +++ b/crates/fsevent/Cargo.toml @@ -11,7 +11,7 @@ path = "src/fsevent.rs" doctest = false [dependencies] -bitflags = "1" +bitflags.workspace = true parking_lot.workspace = true [target.'cfg(target_os = "macos")'.dependencies] diff --git a/crates/fsevent/src/fsevent.rs b/crates/fsevent/src/fsevent.rs index 108b582bd0..e730e701f3 100644 --- a/crates/fsevent/src/fsevent.rs +++ b/crates/fsevent/src/fsevent.rs @@ -17,6 +17,7 @@ pub struct Event { // Synchronize with // /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Headers/FSEvents.h bitflags! { + #[derive(Debug, PartialEq, Eq, Clone, Copy)] #[repr(C)] pub struct StreamFlags: u32 { const NONE = 0x00000000; diff --git a/crates/search/Cargo.toml b/crates/search/Cargo.toml index 4d0db018a4..8daa5e743e 100644 --- a/crates/search/Cargo.toml +++ b/crates/search/Cargo.toml @@ -11,7 +11,7 @@ doctest = false [dependencies] anyhow.workspace = true -bitflags = "1" +bitflags.workspace = true collections.workspace = true editor.workspace = true futures.workspace = true diff --git a/crates/search/src/search.rs b/crates/search/src/search.rs index 748996c389..18e287bfee 100644 --- a/crates/search/src/search.rs +++ b/crates/search/src/search.rs @@ -41,7 +41,7 @@ actions!( ); bitflags! { - #[derive(Default)] + #[derive(Debug, PartialEq, Eq, Clone, Copy, Default)] pub struct SearchOptions: u8 { const NONE = 0b000; const WHOLE_WORD = 0b001;