efraim pushed a commit to branch rust-team
in repository guix.
commit 238d2055c2a6bba5916b87df308f2da9f328235a
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Dec 25 17:21:32 2024 +0200
gnu: Add rust-jsonrpc-core-18.
* gnu/packages/crates-io.scm (rust-jsonrpc-core-18): New variable.
(rust-jsonrpc-core-14): Inherit from rust-jsonrpc-core-18.
Change-Id: I973ac5d016c76828acb06c0ae0555b5d6745a097
---
gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++--------
1 file changed, 29 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e7d87d9561..3075dc6260 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39826,8 +39826,36 @@ friction with idiomatic Rust structs to ease
interopability.")
interface in Webassembly and Javascript too.")
(license license:expat)))
+(define-public rust-jsonrpc-core-18
+ (package
+ (name "rust-jsonrpc-core")
+ (version "18.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "jsonrpc-core" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1sv5m6bxyscdqg8cfzlsm8f3vks3972zc9w475l4h19dxxmggxql"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-futures" ,rust-futures-0.3)
+ ("rust-futures-executor" ,rust-futures-executor-0.3)
+ ("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-serde-json" ,rust-serde-json-1))))
+ (home-page "https://github.com/paritytech/jsonrpc")
+ (synopsis "Transport agnostic Rust implementation of JSON-RPC 2.0")
+ (description
+ "This package provides a transport agnostic Rust implementation of
+JSON-RPC 2.0 specification.")
+ (license license:expat)))
+
(define-public rust-jsonrpc-core-14
(package
+ (inherit rust-jsonrpc-core-18)
(name "rust-jsonrpc-core")
(version "14.2.0")
(source
@@ -39837,7 +39865,6 @@ interface in Webassembly and Javascript too.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0qkvgkr05sg0j25jqgw7zcw4r1agzg8gnfnrmw1rgyqz283p6x50"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@@ -39845,13 +39872,7 @@ interface in Webassembly and Javascript too.")
("rust-log" ,rust-log-0.4)
("rust-serde" ,rust-serde-1)
("rust-serde-derive" ,rust-serde-derive-1)
- ("rust-serde-json" ,rust-serde-json-1))))
- (home-page "https://github.com/paritytech/jsonrpc")
- (synopsis "Transport agnostic Rust implementation of JSON-RPC 2.0")
- (description
- "This package provides a transport agnostic Rust implementation of
-JSON-RPC 2.0 specification.")
- (license license:expat)))
+ ("rust-serde-json" ,rust-serde-json-1))))))
(define-public rust-juliex-0.3
(package