guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

16/33: gnu: Add rust-rustls-ffi-0.8.


From: guix-commits
Subject: 16/33: gnu: Add rust-rustls-ffi-0.8.
Date: Thu, 22 Sep 2022 18:25:23 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit a6fde047858b4472a6915f646fc60cd17c9559ad
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Sep 22 00:01:02 2022 +0200

    gnu: Add rust-rustls-ffi-0.8.
    
    * gnu/packages/crates-io.scm (rust-rustls-ffi-0.8): New variable.
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c2d633c326..d91da74d6a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -53058,6 +53058,37 @@ rustc compiler.")
         ("rust-serde-derive" ,rust-serde-derive-1)
         ("rust-webpki-roots" ,rust-webpki-roots-0.14))))))
 
+(define-public rust-rustls-ffi-0.8
+  (package
+    (name "rust-rustls-ffi")
+    (version "0.8.2")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "rustls-ffi" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "06kqrvm1d5ps9pml26zdd2hm8hh20j6svwvqibpnx7m5rh3jg9cx"))))
+    (build-system cargo-build-system)
+    ;; Build needs cbindgen-0.19
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-num-enum" ,rust-num-enum-0.5)
+        ("rust-rustls" ,rust-rustls-0.20)
+        ("rust-rustls-pemfile" ,rust-rustls-pemfile-0.2)
+        ("rust-sct" ,rust-sct-0.7)
+        ("rust-webpki" ,rust-webpki-0.22))))
+    (home-page "https://github.com/rustls/rustls-ffi";)
+    (synopsis "C to rustls bindings")
+    (description "This package contains FFI bindings for the rustls TLS
+library, so you can use the library in C programs or any other language that
+supports FFI.")
+    ;; Use under the terms of any of these licenses
+    (license (list license:asl2.0 license:isc license:expat))))
+
 (define-public rust-rustls-native-certs-0.6
   (package
     (name "rust-rustls-native-certs")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]