Subject: [PATCH 01/19] gnu: Add rust-flatbuffers-23.

From: Troy Figiel <[email-masked]>
Date: Fri, 26 Jan 2024 20:43:11 +0100

* gnu/packages/crates-io.scm (rust-flatbuffers-23): New variable.
(rust-flatbuffers-2): Inherit from rust-flatbuffers-23.
---
 gnu/packages/crates-io.scm | 32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c910c00260..6471ab27bf 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22631,8 +22631,32 @@ (define-public rust-flamer-0.4
      "A procedural macro to insert @code{flame::start_guard(_)} calls.")
     (license license:asl2.0)))
 
+(define-public rust-flatbuffers-23
+  (package
+    (name "rust-flatbuffers")
+    (version "23.5.26")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "flatbuffers" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0h46mg8yb9igda4ff5dajkzc6k5mf4ix472asqb8rmv24ki57b2d"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-bitflags" ,rust-bitflags-1)
+        ("rust-rustc-version" ,rust-rustc-version-0.4)
+        ("rust-serde" ,rust-serde-1))))
+    (home-page "https://flatbuffers.dev/")
+    (synopsis "FlatBuffers Rust serialization library")
+    (description
+     "This crates provides FlatBuffers runtime serialization library.")
+    (license license:asl2.0)))
+
 (define-public rust-flatbuffers-2
   (package
+    (inherit rust-flatbuffers-23)
     (name "rust-flatbuffers")
     (version "2.0.0")
     (source
@@ -22642,18 +22666,12 @@ (define-public rust-flatbuffers-2
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1xp5ppif0hvgh9kfvy1199gdmjc3dw1517022l1x3ynpphw5fk7g"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
         ("rust-smallvec" ,rust-smallvec-1)
-        ("rust-thiserror" ,rust-thiserror-1))))
-    (home-page "https://google.github.io/flatbuffers/")
-    (synopsis "FlatBuffers Rust serialization library")
-    (description
-     "This crates provides FlatBuffers runtime serialization library.")
-    (license license:asl2.0)))
+        ("rust-thiserror" ,rust-thiserror-1))))))
 
 (define-public rust-flate2-1
   (package
-- 
2.42.0