me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-prost-0.11.

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

Change-Id: Ia08125881eb219bbd335071cd56c16d4fec31d3f
master
Efraim Flashner 2024-02-18 10:52:30 +02:00
parent e7216d0e30
commit 77e94c4d04
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 54 additions and 14 deletions

View File

@ -49523,26 +49523,26 @@ trait of proptest.")
("rust-criterion" ,rust-criterion-0.2) ("rust-criterion" ,rust-criterion-0.2)
("rust-proptest" ,rust-proptest-0.9)))))) ("rust-proptest" ,rust-proptest-0.9))))))
(define-public rust-prost-derive-0.9 (define-public rust-prost-0.11
(package (package
(name "rust-prost-derive") (name "rust-prost")
(version "0.9.0") (version "0.11.9")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (crate-uri "prost-derive" version)) (uri (crate-uri "prost" version))
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "1zi0qway5anz5ik3k1yrc2av81sjcqvqy9lnivv0nzp0ccr1mk7r")))) (base32 "1kc1hva2h894hc0zf6r4r8fsxfpazf7xn5rj3jya9sbrsyhym0hb"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:skip-build? #t `(#:cargo-inputs (("rust-bytes" ,rust-bytes-1)
#:cargo-inputs ("rust-prost-derive" ,rust-prost-derive-0.11))
(("rust-anyhow" ,rust-anyhow-1) #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3)
("rust-itertools" ,rust-itertools-0.10) ("rust-env-logger" ,rust-env-logger-0.8)
("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-log" ,rust-log-0.4)
("rust-quote" ,rust-quote-1) ("rust-proptest" ,rust-proptest-1)
("rust-syn" ,rust-syn-1)))) ("rust-rand" ,rust-rand-0.8))))
(home-page "https://github.com/tokio-rs/prost") (home-page "https://github.com/tokio-rs/prost")
(synopsis "Protocol Buffers implementation for the Rust language") (synopsis "Protocol Buffers implementation for the Rust language")
(description (description
@ -49552,6 +49552,7 @@ language.")
(define-public rust-prost-0.9 (define-public rust-prost-0.9
(package (package
(inherit rust-prost-0.11)
(name "rust-prost") (name "rust-prost")
(version "0.9.0") (version "0.9.0")
(source (source
@ -49561,12 +49562,30 @@ language.")
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "00b0xfn80alw7h2pzr2z4dycyvsys4h5878sifaq9zdlbhkpjj24")))) (base32 "00b0xfn80alw7h2pzr2z4dycyvsys4h5878sifaq9zdlbhkpjj24"))))
(build-system cargo-build-system)
(arguments (arguments
`(#:skip-build? #t `(#:skip-build? #t
#:cargo-inputs #:cargo-inputs
(("rust-bytes" ,rust-bytes-1) (("rust-bytes" ,rust-bytes-1)
("rust-prost-derive" ,rust-prost-derive-0.9)))) ("rust-prost-derive" ,rust-prost-derive-0.9))))))
(define-public rust-prost-derive-0.11
(package
(name "rust-prost-derive")
(version "0.11.9")
(source
(origin
(method url-fetch)
(uri (crate-uri "prost-derive" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1d3mw2s2jba1f7wcjmjd6ha2a255p2rmynxhm1nysv9w1z8xilp5"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
("rust-itertools" ,rust-itertools-0.10)
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1))))
(home-page "https://github.com/tokio-rs/prost") (home-page "https://github.com/tokio-rs/prost")
(synopsis "Protocol Buffers implementation for the Rust language") (synopsis "Protocol Buffers implementation for the Rust language")
(description (description
@ -49574,6 +49593,27 @@ language.")
language.") language.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public rust-prost-derive-0.9
(package
(inherit rust-prost-derive-0.11)
(name "rust-prost-derive")
(version "0.9.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "prost-derive" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1zi0qway5anz5ik3k1yrc2av81sjcqvqy9lnivv0nzp0ccr1mk7r"))))
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-anyhow" ,rust-anyhow-1)
("rust-itertools" ,rust-itertools-0.10)
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1))))))
;; It's recommended that rust-protobuf, rust-protobuf-codegen ;; It's recommended that rust-protobuf, rust-protobuf-codegen
;; and rust-probuf-codegen-pure be the same version ;; and rust-probuf-codegen-pure be the same version
(define-public rust-protobuf-2 (define-public rust-protobuf-2