GNU bug report logs - #61473
Adding rust-protobuf / codegen / codegen-pure

Previous Next

Package: guix-patches;

Reported by: Steve George <steve <at> futurile.net>

Date: Mon, 13 Feb 2023 10:47:01 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61473 in the body.
You can then email your comments to 61473 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#61473; Package guix-patches. (Mon, 13 Feb 2023 10:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Steve George <steve <at> futurile.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 13 Feb 2023 10:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Steve George <steve <at> futurile.net>
To: guix-patches <at> gnu.org
Subject: Adding rust-protobuf / codegen / codegen-pure
Date: Mon, 13 Feb 2023 10:45:48 +0000



Information forwarded to guix-patches <at> gnu.org:
bug#61473; Package guix-patches. (Mon, 13 Feb 2023 11:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 61473 <at> debbugs.gnu.org (full text, mbox):

From: Steve George <steve <at> futurile.net>
To: 61473 <at> debbugs.gnu.org
Cc: Efraim Flashner <efraim <at> flashner.co.il>, steve <at> futurile.net
Subject: [PATCH 1/3] gnu: Add rust-protobuf. * gnu/packages/crates-io.scm
 (rust-protobuf-2): New variable.
Date: Mon, 13 Feb 2023 11:17:55 +0000
---

 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 80f7e619bb..cd4ca8c48d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43149,6 +43149,31 @@ (define-public rust-prost-0.9
 language.")
     (license license:asl2.0)))
 
+;; It's recommended that rust-protobuf, rust-protobuf-codegen
+;; and rust-probuf-codegen-pure be the same version
+(define-public rust-protobuf-2
+  (package
+    (name "rust-protobuf")
+    (version "2.14.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "protobuf" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "11bl8hf522s9mbkckivnn9n8s3ss4g41w6jmfdsswmr5adqd71lf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ;missing files?
+       #:skip-build? #f
+       #:cargo-inputs (("rust-bytes" ,rust-bytes-0.5)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-derive" ,rust-serde-derive-1))))
+    (home-page "https://github.com/stepancheg/rust-protobuf/")
+    (synopsis "Rust implementation of Google protocol buffers")
+    (description "Library to read and write protocol buffer's data.")
+    (license license:expat)))
+
 (define-public rust-psl-2
   (package
     (name "rust-psl")
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#61473; Package guix-patches. (Mon, 13 Feb 2023 11:20:02 GMT) Full text and rfc822 format available.

Message #11 received at 61473 <at> debbugs.gnu.org (full text, mbox):

From: Steve George <steve <at> futurile.net>
To: 61473 <at> debbugs.gnu.org
Cc: Efraim Flashner <efraim <at> flashner.co.il>, steve <at> futurile.net
Subject: [PATCH 3/3] gnu: Add rust-protobuf-codegen-pure. *
 gnu/packages/crates-io.scm (rust-protobuf-codegen-pure): New variable.
Date: Mon, 13 Feb 2023 11:17:57 +0000
---

 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c94a62b628..5720d570d6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43198,6 +43198,29 @@ (define-public rust-protobuf-codegen-2
 invoke programmatically (e.g. from `build.rs`) and `protoc-gen-rust` binary.")
     (license license:expat)))
 
+;; It's recommended that rust-protobuf, rust-protobuf-codegen
+;; and rust-probuf-codegen-pure be the same version
+(define-public rust-protobuf-codegen-pure-2
+  (package
+    (name "rust-protobuf-codegen-pure")
+    (version "2.14.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "protobuf-codegen-pure" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0h34gfqlb7bqmgqv1mfgy5wk35z5r2h5ki3p3pdcmw1vqzmly6id"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #f
+       #:cargo-inputs (("rust-protobuf" ,rust-protobuf-2)
+                       ("rust-protobuf-codegen" ,rust-protobuf-codegen-2))))
+    (home-page "https://github.com/stepancheg/rust-protobuf/")
+    (synopsis "Pure-rust codegen for protobuf using protobuf-parser")
+    (description "Pure-rust codegen for protobuf using protobuf-parser.")
+    (license license:expat)))
+
 (define-public rust-psl-2
   (package
     (name "rust-psl")
-- 
2.39.1





Information forwarded to guix-patches <at> gnu.org:
bug#61473; Package guix-patches. (Mon, 13 Feb 2023 11:20:02 GMT) Full text and rfc822 format available.

Message #14 received at 61473 <at> debbugs.gnu.org (full text, mbox):

From: Steve George <steve <at> futurile.net>
To: 61473 <at> debbugs.gnu.org
Cc: Efraim Flashner <efraim <at> flashner.co.il>, steve <at> futurile.net
Subject: [PATCH 2/3] gnu: Add rust-protobuf-codegen. *
 gnu/packages/crates-io.scm (rust-protobuf-codegen): New variable.
Date: Mon, 13 Feb 2023 11:17:56 +0000
---

 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cd4ca8c48d..c94a62b628 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43174,6 +43174,30 @@ (define-public rust-protobuf-2
     (description "Library to read and write protocol buffer's data.")
     (license license:expat)))
 
+;; It's recommended that rust-protobuf, rust-protobuf-codegen
+;; and rust-probuf-codegen-pure be the same version
+(define-public rust-protobuf-codegen-2
+  (package
+    (name "rust-protobuf-codegen")
+    (version "2.14.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "protobuf-codegen" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "031bx325lsgcx7wc76vc2cqph6q0b34jgc8nz0g2rkwcfnx3n4fy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #f
+       #:cargo-inputs (("rust-protobuf" ,rust-protobuf-2))))
+    (home-page "https://github.com/stepancheg/rust-protobuf/")
+    (synopsis "Code generator for rust-protobuf")
+    (description
+     "Code generator for rust-protobuf.  Includes a library to
+invoke programmatically (e.g. from `build.rs`) and `protoc-gen-rust` binary.")
+    (license license:expat)))
+
 (define-public rust-psl-2
   (package
     (name "rust-psl")
-- 
2.39.1





Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Tue, 14 Feb 2023 15:07:02 GMT) Full text and rfc822 format available.

Notification sent to Steve George <steve <at> futurile.net>:
bug acknowledged by developer. (Tue, 14 Feb 2023 15:07:02 GMT) Full text and rfc822 format available.

Message #19 received at 61473-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Steve George <steve <at> futurile.net>
Cc: 61473-done <at> debbugs.gnu.org
Subject: Re: [PATCH 1/3] gnu: Add rust-protobuf.
Date: Tue, 14 Feb 2023 17:06:15 +0200
[Message part 1 (text/plain, inline)]
Thanks. I fixed up the commit messages (the lines got squashed together)
and expanded the descriptions.

Patches pushed!

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 Mar 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.