changeset 53259:efd03dbaf153

rust-hg-core: update `bitflags` dependency It is good to refresh our dependencies every cycle to get the latest perf improvements, bugfixes etc. This update is done in a separate changeset because of a breaking change.
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 19 May 2025 09:27:06 +0200
parents a44d7ff43700
children fc55ffef89fe
files rust/Cargo.lock rust/hg-core/Cargo.toml rust/hg-core/src/dirstate/entry.rs
diffstat 3 files changed, 9 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/rust/Cargo.lock	Wed Mar 26 11:16:36 2025 +0100
+++ b/rust/Cargo.lock	Mon May 19 09:27:06 2025 +0200
@@ -117,15 +117,9 @@
 
 [[package]]
 name = "bitflags"
-version = "1.3.2"
+version = "2.9.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
-
-[[package]]
-name = "bitflags"
-version = "2.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
+checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
 
 [[package]]
 name = "bitmaps"
@@ -628,7 +622,7 @@
 version = "0.1.0"
 dependencies = [
  "bit-set",
- "bitflags 1.3.2",
+ "bitflags",
  "bitvec",
  "byteorder",
  "bytes-cast",
@@ -842,7 +836,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
 dependencies = [
- "bitflags 2.6.0",
+ "bitflags",
  "libc",
  "redox_syscall",
 ]
@@ -929,7 +923,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
 dependencies = [
- "bitflags 2.6.0",
+ "bitflags",
  "cfg-if",
  "cfg_aliases",
  "libc",
@@ -1274,7 +1268,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f"
 dependencies = [
- "bitflags 2.6.0",
+ "bitflags",
 ]
 
 [[package]]
@@ -1371,7 +1365,7 @@
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6"
 dependencies = [
- "bitflags 2.6.0",
+ "bitflags",
  "errno",
  "libc",
  "linux-raw-sys",
--- a/rust/hg-core/Cargo.toml	Wed Mar 26 11:16:36 2025 +0100
+++ b/rust/hg-core/Cargo.toml	Mon May 19 09:27:06 2025 +0200
@@ -15,7 +15,7 @@
 full-tracing = []
 
 [dependencies]
-bitflags = "1.3.2"
+bitflags = "2.9.0"
 bytes-cast = "0.3.0"
 byteorder = "1.4.3"
 ctrlc = "3.4"
--- a/rust/hg-core/src/dirstate/entry.rs	Wed Mar 26 11:16:36 2025 +0100
+++ b/rust/hg-core/src/dirstate/entry.rs	Mon May 19 09:27:06 2025 +0200
@@ -25,6 +25,7 @@
 }
 
 bitflags! {
+    #[derive(Debug, Copy, Clone)]
     pub(crate) struct Flags: u8 {
         const WDIR_TRACKED = 1 << 0;
         const P1_TRACKED = 1 << 1;