* [bug#61473] Adding rust-protobuf / codegen / codegen-pure
@ 2023-02-13 10:45 Steve George
2023-02-13 11:17 ` [bug#61473] [PATCH 1/3] gnu: Add rust-protobuf. * gnu/packages/crates-io.scm (rust-protobuf-2): New variable Steve George
0 siblings, 1 reply; 5+ messages in thread
From: Steve George @ 2023-02-13 10:45 UTC (permalink / raw)
To: 61473
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#61473] [PATCH 1/3] gnu: Add rust-protobuf. * gnu/packages/crates-io.scm (rust-protobuf-2): New variable.
2023-02-13 10:45 [bug#61473] Adding rust-protobuf / codegen / codegen-pure Steve George
@ 2023-02-13 11:17 ` Steve George
2023-02-13 11:17 ` [bug#61473] [PATCH 2/3] gnu: Add rust-protobuf-codegen. * gnu/packages/crates-io.scm (rust-protobuf-codegen): " Steve George
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Steve George @ 2023-02-13 11:17 UTC (permalink / raw)
To: 61473; +Cc: Efraim Flashner, steve
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#61473] [PATCH 2/3] gnu: Add rust-protobuf-codegen. * gnu/packages/crates-io.scm (rust-protobuf-codegen): New variable.
2023-02-13 11:17 ` [bug#61473] [PATCH 1/3] gnu: Add rust-protobuf. * gnu/packages/crates-io.scm (rust-protobuf-2): New variable Steve George
@ 2023-02-13 11:17 ` 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
2 siblings, 0 replies; 5+ messages in thread
From: Steve George @ 2023-02-13 11:17 UTC (permalink / raw)
To: 61473; +Cc: Efraim Flashner, steve
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#61473] [PATCH 3/3] gnu: Add rust-protobuf-codegen-pure. * gnu/packages/crates-io.scm (rust-protobuf-codegen-pure): New variable.
2023-02-13 11:17 ` [bug#61473] [PATCH 1/3] gnu: Add rust-protobuf. * gnu/packages/crates-io.scm (rust-protobuf-2): New variable Steve George
2023-02-13 11:17 ` [bug#61473] [PATCH 2/3] gnu: Add rust-protobuf-codegen. * gnu/packages/crates-io.scm (rust-protobuf-codegen): " Steve George
@ 2023-02-13 11:17 ` Steve George
2023-02-14 15:06 ` bug#61473: [PATCH 1/3] gnu: Add rust-protobuf Efraim Flashner
2 siblings, 0 replies; 5+ messages in thread
From: Steve George @ 2023-02-13 11:17 UTC (permalink / raw)
To: 61473; +Cc: Efraim Flashner, steve
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#61473: [PATCH 1/3] gnu: Add rust-protobuf.
2023-02-13 11:17 ` [bug#61473] [PATCH 1/3] gnu: Add rust-protobuf. * gnu/packages/crates-io.scm (rust-protobuf-2): New variable Steve George
2023-02-13 11:17 ` [bug#61473] [PATCH 2/3] gnu: Add rust-protobuf-codegen. * gnu/packages/crates-io.scm (rust-protobuf-codegen): " 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 ` Efraim Flashner
2 siblings, 0 replies; 5+ messages in thread
From: Efraim Flashner @ 2023-02-14 15:06 UTC (permalink / raw)
To: Steve George; +Cc: 61473-done
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
Thanks. I fixed up the commit messages (the lines got squashed together)
and expanded the descriptions.
Patches pushed!
--
Efraim Flashner <efraim@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-02-14 15:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13 10:45 [bug#61473] Adding rust-protobuf / codegen / codegen-pure Steve George
2023-02-13 11:17 ` [bug#61473] [PATCH 1/3] gnu: Add rust-protobuf. * gnu/packages/crates-io.scm (rust-protobuf-2): New variable Steve George
2023-02-13 11:17 ` [bug#61473] [PATCH 2/3] gnu: Add rust-protobuf-codegen. * gnu/packages/crates-io.scm (rust-protobuf-codegen): " 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
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).