unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37291] [PATCHES] Add rust-constant-time-eq, Update rust-unicode-xid to 0.2.0
@ 2019-09-02 23:29 goodoldpaul
  2019-09-03  2:53 ` Ivan Petkov
  0 siblings, 1 reply; 3+ messages in thread
From: goodoldpaul @ 2019-09-02 23:29 UTC (permalink / raw)
  To: 37291

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-rust-constant-time-eq.patch --]
[-- Type: text/x-diff; name=0001-gnu-Add-rust-constant-time-eq.patch, Size: 1867 bytes --]

From a371d35c4de3f60b4d9475a7c29eb507cd747d85 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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 <ivanppetkov@gmail.com>
 ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; 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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-rust-unicode-xid-Update-to-0.2.0.patch --]
[-- Type: text/x-diff; name=0002-gnu-rust-unicode-xid-Update-to-0.2.0.patch, Size: 1200 bytes --]

From 8a6313282c6651f24da4a70c2d633b74fdcebea0 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#37291] [PATCHES] Add rust-constant-time-eq, Update rust-unicode-xid to 0.2.0
  2019-09-02 23:29 [bug#37291] [PATCHES] Add rust-constant-time-eq, Update rust-unicode-xid to 0.2.0 goodoldpaul
@ 2019-09-03  2:53 ` Ivan Petkov
  2019-09-03  8:21   ` bug#37291: " Efraim Flashner
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Petkov @ 2019-09-03  2:53 UTC (permalink / raw)
  To: goodoldpaul; +Cc: 37291

Hi!

> On Sep 2, 2019, at 4:29 PM, goodoldpaul@autistici.org wrote:

Have you checked that bumping rust-unicode-xid to 0.2.0 doesn’t break any other rust
crates which depend on it? I’m not sure if all the imported versions allow building
with both 0.1.0 and 0.2.0!

—Ivan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#37291: [PATCHES] Add rust-constant-time-eq, Update rust-unicode-xid to 0.2.0
  2019-09-03  2:53 ` Ivan Petkov
@ 2019-09-03  8:21   ` Efraim Flashner
  0 siblings, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2019-09-03  8:21 UTC (permalink / raw)
  To: Ivan Petkov; +Cc: 37291-done

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]

On Mon, Sep 02, 2019 at 07:53:09PM -0700, Ivan Petkov wrote:
> Hi!
> 
> > On Sep 2, 2019, at 4:29 PM, goodoldpaul@autistici.org wrote:
> 
> Have you checked that bumping rust-unicode-xid to 0.2.0 doesn’t break any other rust
> crates which depend on it? I’m not sure if all the imported versions allow building
> with both 0.1.0 and 0.2.0!
> 

It likely does, I'm pretty sure I have some stuff that needs 0.1.

On the other hand, it looks good and rust-constant-time-eq was one I
meant to push anyway. So two patches pushed, and a new
rust-unicode-xid-0.1 variable created. I've also checked the ones that
need 0.1 and changed those respectively.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-03  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-02 23:29 [bug#37291] [PATCHES] Add rust-constant-time-eq, Update rust-unicode-xid to 0.2.0 goodoldpaul
2019-09-03  2:53 ` Ivan Petkov
2019-09-03  8:21   ` bug#37291: " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).