Subject: [bug#68312] [PATCH 101/156] gnu: Add rust-prost-0.11.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:53:18 +0100

* gnu/packages/crates-io.scm (rust-prost-0.11): New variable.
(rust-prost-0.9): Inherit from rust-prost-0.11.

Change-Id: I99b3e8550562a77efd705cc0d7a00828d7b15ef0
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 334ccefde28..b4a660c9491 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -54576,6 +54576,23 @@ (define-public rust-prost-derive-0.9
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))))))
+
+(define-public rust-prost-0.11
+  (package
+    (name "rust-prost")
+    (version "0.11.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "prost" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1kc1hva2h894hc0zf6r4r8fsxfpazf7xn5rj3jya9sbrsyhym0hb"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bytes" ,rust-bytes-1)
+                       ("rust-prost-derive" ,rust-prost-derive-0.11))))
     (home-page "https://github.com/tokio-rs/prost")
     (synopsis "Protocol Buffers implementation for the Rust language")
     (description
@@ -54585,6 +54602,7 @@ (define-public rust-prost-derive-0.9
 
 (define-public rust-prost-0.9
   (package
+    (inherit rust-prost-0.11)
     (name "rust-prost")
     (version "0.9.0")
     (source
@@ -54594,12 +54612,11 @@ (define-public rust-prost-0.9
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "00b0xfn80alw7h2pzr2z4dycyvsys4h5878sifaq9zdlbhkpjj24"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-bytes" ,rust-bytes-1)
-        ("rust-prost-derive" ,rust-prost-derive-0.9))))
+        ("rust-prost-derive" ,rust-prost-derive-0.9))))))
     (home-page "https://github.com/tokio-rs/prost")
     (synopsis "Protocol Buffers implementation for the Rust language")
     (description
-- 
2.41.0