Subject: [PATCHv2 rust-team 04/27] gnu: Add rust-bitflags-2.6.

From: Giacomo Leidi <[email-masked]>
Date: Wed, 6 Nov 2024 21:41:08 +0100

* gnu/packages/crates-io.scm (rust-bitflags-2.6): New variable;
(rust-bitflags-2): inherit from rust-bitflags-2.6.

Change-Id: Ic8935500734edb26da6c1dcb529715308729f266
---
 gnu/packages/crates-io.scm | 36 +++++++++++++++++++++++++++++++++---
 1 file changed, 33 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d459c936d0..dd78521655 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8264,17 +8264,17 @@ (define-public rust-bitfield-0.14
      "This Rust crate provides macros to generate bitfield-like struct.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-bitflags-2
+(define-public rust-bitflags-2.6
   (package
     (name "rust-bitflags")
-    (version "2.5.0")
+    (version "2.6.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "bitflags" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1h91vdx1il069vdiiissj8ymzj130rbiic0dbs77yxjgjim9sjyg"))))
+        (base32 "1pkidwzn3hnxlsl8zizh0bncgbjnw7c41cx7bby26ncbzmiznj5h"))))
     (build-system cargo-build-system)
     (arguments
      `(#:tests? #f      ; Not all files included.
@@ -8300,6 +8300,36 @@ (define-public rust-bitflags-2
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-bitflags-2
+  (package
+    (inherit rust-bitflags-2.6)
+    (name "rust-bitflags")
+    (version "2.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "bitflags" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1h91vdx1il069vdiiissj8ymzj130rbiic0dbs77yxjgjim9sjyg"))))
+    (arguments
+     `(#:tests? #f      ; Not all files included.
+       #:cargo-inputs
+       (("rust-arbitrary" ,rust-arbitrary-1)
+        ("rust-bytemuck" ,rust-bytemuck-1)
+        ("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
+        ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
+        ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-arbitrary" ,rust-arbitrary-1)
+        ("rust-bytemuck" ,rust-bytemuck-1)
+        ("rust-rustversion" ,rust-rustversion-1)
+        ("rust-serde-derive" ,rust-serde-derive-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-serde-test" ,rust-serde-test-1)
+        ("rust-trybuild" ,rust-trybuild-1)
+        ("rust-zerocopy" ,rust-zerocopy-0.6))))))
+
 (define-public rust-bitflags-1
   (package
     (inherit rust-bitflags-2)
-- 
2.46.0