Subject: [PATCH 093/228] gnu: Add rust-thrift-0.17.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:03:31 +0100

* gnu/packages/crates-io.scm (rust-thrift-0.17): Add variable.
(rust-thrift-0.13): Inherit rust-thrift-0.17.

Change-Id: I12e5d9216f024aefd41058681828151d481bbe63
---
 gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6d2cbff9f0..ca081eabe3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -71124,8 +71124,34 @@ (define-public rust-threadpool-1
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-thrift-0.17
+  (package
+    (name "rust-thrift")
+    (version "0.17.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "thrift" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "02cydaqqlp25ri19y3ixi77a7nd85fwvbfn4fp0qpakzzj2vqm3y"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-integer-encoding" ,rust-integer-encoding-3)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-ordered-float" ,rust-ordered-float-2)
+                       ("rust-threadpool" ,rust-threadpool-1))))
+    (home-page "https://thrift.apache.org")
+    (synopsis "Rust bindings for the Apache Thrift RPC system")
+    (description
+     "This package provides Rust bindings for the Apache Thrift RPC
+system.")
+    (license license:asl2.0)))
+
 (define-public rust-thrift-0.13
   (package
+    (inherit rust-thrift-0.17)
     (name "rust-thrift")
     (version "0.13.0")
     (source
@@ -71135,7 +71161,6 @@ (define-public rust-thrift-0.13
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0nvbrflb5fw6hmayqppkp97dh63vs2znww92dlkcfz4laia9cv8c"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -71143,12 +71168,7 @@ (define-public rust-thrift-0.13
         ("rust-integer-encoding" ,rust-integer-encoding-1)
         ("rust-log" ,rust-log-0.4)
         ("rust-ordered-float" ,rust-ordered-float-1)
-        ("rust-threadpool" ,rust-threadpool-1))))
-    (home-page "https://thrift.apache.org")
-    (synopsis "Rust bindings for the Apache Thrift RPC system")
-    (description
-     "This crate provides Rust bindings for the Apache Thrift RPC system.")
-    (license license:asl2.0)))
+        ("rust-threadpool" ,rust-threadpool-1))))))
 
 (define-public rust-tikv-jemalloc-sys-0.4
   (package
-- 
2.41.0