guix-commits
[Top][All Lists]
Advanced

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

323/330: gnu: Add rust-csrf-0.4.


From: guix-commits
Subject: 323/330: gnu: Add rust-csrf-0.4.
Date: Mon, 18 Mar 2024 07:16:50 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 1e96a9b12b9f328c5e919eb8b61c6492d4c8c331
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 18 12:01:41 2024 +0200

    gnu: Add rust-csrf-0.4.
    
    * gnu/packages/crates-crypto.scm (rust-csrf-0.4): New variable.
    
    Change-Id: I8fe9c82b65e24d5bc1a08efa2518baf6052722bc
---
 gnu/packages/crates-crypto.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 7bef14b16d..3c6383b66e 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -1642,6 +1642,36 @@ algorithms.")
 hash functions.")
     (license license:expat)))
 
+(define-public rust-csrf-0.4
+  (package
+    (name "rust-csrf")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "csrf" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1q7ixhshj6a7x2vgsr4d4iqa5mgp4fwkr4lx2hgvnj9xcy1py9dh"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-aead" ,rust-aead-0.4)
+                       ("rust-aes-gcm" ,rust-aes-gcm-0.9)
+                       ("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-chacha20poly1305" ,rust-chacha20poly1305-0.8)
+                       ("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-data-encoding" ,rust-data-encoding-2)
+                       ("rust-generic-array" ,rust-generic-array-0.14)
+                       ("rust-hmac" ,rust-hmac-0.11)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-sha2" ,rust-sha2-0.9)
+                       ("rust-typemap" ,rust-typemap-0.3))))
+    (home-page "https://github.com/heartsucker/rust-csrf";)
+    (synopsis "CSRF protection primitives")
+    (description "This package provides CSRF protection primitives.")
+    (license license:expat)))
+
 (define-public rust-ctr-0.9
   (package
     (name "rust-ctr")



reply via email to

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