[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
139/194: gnu: Add rust-napi-2.
From: |
guix-commits |
Subject: |
139/194: gnu: Add rust-napi-2. |
Date: |
Tue, 3 Oct 2023 14:57:54 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit d1b58bd0eeaf9024cae2e7285c6a8c874019ef6e
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 3 10:10:03 2023 +0300
gnu: Add rust-napi-2.
* gnu/packages/crates-io.scm (rust-napi-2): New variable.
(rust-napi-0.5): Inherit from rust-napi-2.
---
gnu/packages/crates-io.scm | 38 ++++++++++++++++++++++++++++++++------
1 file changed, 32 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3ebad766b0..4747d0eaff 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -40922,8 +40922,39 @@ linear algebra library.")
#:cargo-development-inputs
(("rust-nalgebra" ,rust-nalgebra-0.26))))))
+(define-public rust-napi-2
+ (package
+ (name "rust-napi")
+ (version "2.13.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "napi" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1h1sbblg638h1pnhvf2yxy0lzk8hy9dwx5mswc296500p69kq1px"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-bitflags" ,rust-bitflags-2)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-ctor" ,rust-ctor-0.2)
+ ("rust-encoding-rs" ,rust-encoding-rs-0.8)
+ ("rust-napi-derive" ,rust-napi-derive-2)
+ ("rust-napi-sys" ,rust-napi-sys-2)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-tokio" ,rust-tokio-1))))
+ (home-page "https://github.com/napi-rs/napi-rs")
+ (synopsis "N-API bindings")
+ (description "This package provides N-API bindings.")
+ (license license:expat)))
+
(define-public rust-napi-0.5
(package
+ (inherit rust-napi-2)
(name "rust-napi")
(version "0.5.1")
(source
@@ -40934,7 +40965,6 @@ linear algebra library.")
(sha256
(base32
"0mp0di7zv1r9gn3r3pmqnyy6q94akd9d6bl1p7m76nm9hgj9rw56"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-encoding-rs" ,rust-encoding-rs-0.8)
@@ -40945,11 +40975,7 @@ linear algebra library.")
("rust-serde-json" ,rust-serde-json-1)
("rust-tokio" ,rust-tokio-0.2))
#:cargo-development-inputs
- (("rust-napi-build" ,rust-napi-build-0.2))))
- (home-page "https://github.com/napi-rs/napi-rs")
- (synopsis "N-API bindings")
- (description "This package provides N-API bindings.")
- (license license:expat)))
+ (("rust-napi-build" ,rust-napi-build-0.2))))))
(define-public rust-napi-build-1
(package
- 119/194: gnu: Add rust-abi-stable-0.10., (continued)
- 119/194: gnu: Add rust-abi-stable-0.10., guix-commits, 2023/10/03
- 120/194: gnu: Add rust-mimalloc-rust-0.1., guix-commits, 2023/10/03
- 123/194: gnu: Add rust-auto-impl-0.5., guix-commits, 2023/10/03
- 131/194: gnu: rust-sourcemap-6: Update to 6.4.1., guix-commits, 2023/10/03
- 117/194: gnu: python-cryptography: Update to 41.0.4., guix-commits, 2023/10/03
- 124/194: gnu: Add rust-convert-case-0.6., guix-commits, 2023/10/03
- 143/194: gnu: Add rust-unreachable-0.1., guix-commits, 2023/10/03
- 129/194: gnu: Add rust-repr-offset-0.2., guix-commits, 2023/10/03
- 137/194: gnu: Add rust-napi-derive-2., guix-commits, 2023/10/03
- 127/194: gnu: rust-lexical-core-0.7: Fix inputs., guix-commits, 2023/10/03
- 139/194: gnu: Add rust-napi-2.,
guix-commits <=
- 141/194: gnu: rust: Fix test failures on some architectures., guix-commits, 2023/10/03
- 122/194: gnu: Add rust-as-derive-utils-0.10., guix-commits, 2023/10/03
- 144/194: gnu: Add rust-unicode-id-0.3., guix-commits, 2023/10/03
- 132/194: gnu: rust-test-case-1: Update to 1.2.3., guix-commits, 2023/10/03
- 135/194: gnu: Add rust-napi-sys-2., guix-commits, 2023/10/03
- 148/194: gnu: Add rust-ntest-timeout-0.7., guix-commits, 2023/10/03
- 128/194: gnu: rust-proptest-1: Update to 1.3.1., guix-commits, 2023/10/03
- 147/194: gnu: Add rust-ntest-proc-macro-helper-0.7., guix-commits, 2023/10/03
- 150/194: gnu: Add rust-ntest-0.7., guix-commits, 2023/10/03
- 154/194: gnu: Add rust-generational-arena-0.2., guix-commits, 2023/10/03