unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Steve George <steve@futurile.net>
To: 61473@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>, steve@futurile.net
Subject: [bug#61473] [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	[thread overview]
Message-ID: <20230213111757.692759-1-steve@futurile.net> (raw)
In-Reply-To: <dae3bc59-b1c3-2ad9-62d8-c0b4f3e74bbd@futurile.net>

---

 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





  reply	other threads:[~2023-02-13 11:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-13 10:45 [bug#61473] Adding rust-protobuf / codegen / codegen-pure Steve George
2023-02-13 11:17 ` Steve George [this message]
2023-02-13 11:17   ` [bug#61473] [PATCH 2/3] gnu: Add rust-protobuf-codegen. * gnu/packages/crates-io.scm (rust-protobuf-codegen): New variable Steve George
2023-02-13 11:17   ` [bug#61473] [PATCH 3/3] gnu: Add rust-protobuf-codegen-pure. * gnu/packages/crates-io.scm (rust-protobuf-codegen-pure): " Steve George
2023-02-14 15:06   ` bug#61473: [PATCH 1/3] gnu: Add rust-protobuf Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230213111757.692759-1-steve@futurile.net \
    --to=steve@futurile.net \
    --cc=61473@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).