Subject: [PATCHES] Add rust-constant-time-eq, Update rust-unicode-xid to 0.2.0
From: [email-masked]
To: [email-masked]
Date: Mon, 02 Sep 2019 23:29:57 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

From a371d35c4de3f60b4d9475a7c29eb507cd747d85 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <[email-masked]>
Date: Tue, 3 Sep 2019 01:06:40 +0200
Subject: [PATCH 1/2] gnu: Add rust-constant-time-eq.

* gnu/packages/crates-io.scm (rust-constant-time-eq): New variable.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6f2a002a2f..3fbe0c748a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2019 Ivan Petkov <[email-masked]>
 ;;; Copyright © 2019 Efraim Flashner <[email-masked]>
 ;;; Copyright © 2019 Nicolas Goaziou <[email-masked]>
+;;; Copyright © 2019 Giacomo Leidi <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -251,6 +252,28 @@ colorization.")
      "Low level interface to CloudABI.  Contains all syscalls and related types.")
     (license license:bsd-2)))
 
+(define-public rust-constant-time-eq
+  (package
+    (name "rust-constant-time-eq")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "constant_time_eq" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "083icpr9xb72rrdxw3p4068dcspn6ai22jy7rhl2a8grfz448nlr"))))
+    (build-system cargo-build-system)
+    (home-page "https://crates.io/crates/constant_time_eq")
+    (synopsis
+     "Compares two equal-sized byte strings in constant time")
+    (description
+     "This package compares two equal-sized byte strings in constant time.  Inspired
+by the Linux kernel's @code{crypto_memneq}.")
+    (license license:cc0)))
+
 (define-public rust-core-foundation-sys
   (package
     (name "rust-core-foundation-sys")
-- 
2.23.0

From 8a6313282c6651f24da4a70c2d633b74fdcebea0 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <[email-masked]>
Date: Tue, 3 Sep 2019 01:16:29 +0200
Subject: [PATCH 2/2] gnu: rust-unicode-xid: Update to 0.2.0.

* gnu/packages/crates-io.scm (rust-unicode-xid): Update to 0.2.0.
---
 gnu/packages/crates-io.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3fbe0c748a..a837d97d53 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2431,7 +2431,7 @@ with the Unicode character database.")
 (define-public rust-unicode-xid
   (package
     (name "rust-unicode-xid")
-    (version "0.1.0")
+    (version "0.2.0")
     (source
       (origin
         (method url-fetch)
@@ -2440,7 +2440,7 @@ with the Unicode character database.")
           (string-append name "-" version ".tar.gz"))
         (sha256
           (base32
-            "1z57lqh4s18rr4x0j4fw4fmp9hf9346h0kmdgqsqx0fhjr3k0wpw"))))
+            "0z09fn515xm7zyr0mmdyxa9mx2f7azcpv74pqmg611iralwpcvl2"))))
     (build-system cargo-build-system)
     (home-page
       "https://github.com/unicode-rs/unicode-xid")
-- 
2.23.0