GNU bug report logs - #70705
Add rust-hidapi

Previous Next

Package: guix-patches;

Reported by: paul <goodoldpaul <at> autistici.org>

Date: Wed, 1 May 2024 20:36:02 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70705 in the body.
You can then email your comments to 70705 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Wed, 01 May 2024 20:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to paul <goodoldpaul <at> autistici.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 01 May 2024 20:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: paul <goodoldpaul <at> autistici.org>
To: guix-patches <at> gnu.org
Subject: Add rust-hidapi
Date: Wed, 1 May 2024 22:35:19 +0200
Hello Guix,

I'm sending a couple of patches adding rust-hidapi


Thank you for your work,

giacomo





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Wed, 01 May 2024 20:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH 3/3] gnu: Add rust-hidapi-2.
Date: Wed,  1 May 2024 22:39:40 +0200
* gnu/packages/crates-io.scm (rust-hidapi-2): New variable.

Change-Id: I3a8bb6e7d6e555fba8df036053b146d414b14198
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 56ecb967cb..7ac1c8f2da 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28737,6 +28737,36 @@ (define-public rust-hexf-parse-0.2
 provided for each type.")
     (license license:cc0)))
 
+(define-public rust-hidapi-2
+  (package
+    (name "rust-hidapi")
+    (version "2.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "hidapi" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0g62241lsd88blvmnwl4mwa556dljazc3g2ymq6zx27y4082an4y"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev hidapi))
+    (arguments
+     `(#:cargo-inputs (("rust-cc" ,rust-cc-1)
+                       ("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-nix" ,rust-nix-0.27)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3)
+                       ("rust-udev" ,rust-udev-0.8)
+                       ("rust-windows-sys" ,rust-windows-sys-0.48))))
+    (home-page "https://github.com/ruabmbua/hidapi-rs")
+    (synopsis "Rust-y wrapper around @code{hidapi}")
+    (description "This crate provides a Rust abstraction over the features of
+the C library @code{hidapi}.  Based off of @code{hidapi-rs} by Osspial.")
+    (license license:expat)))
+
 (define-public rust-hostname-0.3
   (package
     (name "rust-hostname")
-- 
2.41.0





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Wed, 01 May 2024 20:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH 2/3] gnu: Add rust-udev-0.8.
Date: Wed,  1 May 2024 22:39:39 +0200
* gnu/packages/crates-io.scm (rust-udev-0.8): New variable.

Change-Id: I77687eadda6348d589970aef8e45a986b8651166
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8352fb56c5..56ecb967cb 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74670,6 +74670,38 @@ (define-public rust-ucd-util-0.1
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-udev-0.8
+  (package
+    (name "rust-udev")
+    (version "0.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "udev" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "18f5vkhjcljw1p5gfvy61p1837n27d7h2l3x45pywa5y49p1q1ah"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev))
+    (arguments
+     `(#:tests? #f ;tests are supposed to be run on real hardware
+       #:cargo-inputs (("rust-io-lifetimes" ,rust-io-lifetimes-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-libudev-sys" ,rust-libudev-sys-0.1)
+                       ("rust-mio" ,rust-mio-0.8)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (home-page "https://github.com/Smithay/udev-rs")
+    (synopsis "Safe @code{libudev} bindings for Rust")
+    (description "This crate provides a safe wrapper around the native
+@code{libudev} library.  It applies the RAII pattern and Rust lifetimes to
+ensure safe usage of all @code{libudev} functionality.  The RAII pattern ensures
+that all acquired resources are released when they're no longer needed, and Rust
+lifetimes ensure that resources are released in a proper order.")
+    (license license:expat)))
+
 (define-public rust-ufmt-0.1
   (package
     (name "rust-ufmt")
-- 
2.41.0





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Wed, 01 May 2024 20:41:03 GMT) Full text and rfc822 format available.

Message #14 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH 1/3] gnu: Add rust-libudev-sys-0.1.
Date: Wed,  1 May 2024 22:39:38 +0200
* gnu/packages/crates-io.scm (rust-libudev-sys-0.1): New variable.

Change-Id: I278a561e7dd8c10bf813b5ac4fded7fe74d391cc
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a67d3d74bb..8352fb56c5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34659,6 +34659,30 @@ (define-public rust-libsqlite3-sys-0.20
         ("rust-pkg-config" ,rust-pkg-config-0.3)
         ("rust-vcpkg" ,rust-vcpkg-0.2))))))
 
+(define-public rust-libudev-sys-0.1
+  (package
+    (name "rust-libudev-sys")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libudev-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09236fdzlx9l0dlrsc6xx21v5x8flpfm3d5rjq9jr5ivlas6k11w"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev))
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (home-page "https://github.com/dcuddeback/libudev-sys")
+    (synopsis "FFI bindings to @code{libudev}")
+    (description "This package provides FFI bindings to @code{libudev}.")
+    (license license:expat)))
+
 (define-public rust-libxml-0.3
   (package
     (name "rust-libxml")

base-commit: 7d4ae2fca723114fb1df56de33b82177fbc4d0a6
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Wed, 04 Sep 2024 17:33:02 GMT) Full text and rfc822 format available.

Message #17 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: paul <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Subject: Re: Add rust-hidapi
Date: Wed, 4 Sep 2024 19:31:42 +0200
Dear Guix,

this is a friendly ping :) I'm sending an updated patchset based on 
current master.


Thank you for your work,


giacomo





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Wed, 04 Sep 2024 21:02:01 GMT) Full text and rfc822 format available.

Message #20 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1.
Date: Wed,  4 Sep 2024 22:59:46 +0200
* gnu/packages/crates-io.scm (rust-libudev-sys-0.1): New variable.

Change-Id: I278a561e7dd8c10bf813b5ac4fded7fe74d391cc
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0cdb071ea0..d04e4a11c4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39152,6 +39152,30 @@ (define-public rust-libsqlite3-sys-0.20
         ("rust-pkg-config" ,rust-pkg-config-0.3)
         ("rust-vcpkg" ,rust-vcpkg-0.2))))))
 
+(define-public rust-libudev-sys-0.1
+  (package
+    (name "rust-libudev-sys")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libudev-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09236fdzlx9l0dlrsc6xx21v5x8flpfm3d5rjq9jr5ivlas6k11w"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev))
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (home-page "https://github.com/dcuddeback/libudev-sys")
+    (synopsis "FFI bindings to @code{libudev}")
+    (description "This package provides FFI bindings to @code{libudev}.")
+    (license license:expat)))
+
 (define-public rust-libxml-0.3
   (package
     (name "rust-libxml")

base-commit: 9a03ab25ba889be27b34d5cebea05d5ac3b0a033
-- 
2.45.2





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Wed, 04 Sep 2024 21:02:02 GMT) Full text and rfc822 format available.

Message #23 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH v2 3/3] gnu: Add rust-hidapi-2.
Date: Wed,  4 Sep 2024 22:59:48 +0200
* gnu/packages/crates-io.scm (rust-hidapi-2): New variable.

Change-Id: I3a8bb6e7d6e555fba8df036053b146d414b14198
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 37b50d3b69..8912232885 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32260,6 +32260,36 @@ (define-public rust-hexf-parse-0.2
 provided for each type.")
     (license license:cc0)))
 
+(define-public rust-hidapi-2
+  (package
+    (name "rust-hidapi")
+    (version "2.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "hidapi" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0g62241lsd88blvmnwl4mwa556dljazc3g2ymq6zx27y4082an4y"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev hidapi))
+    (arguments
+     `(#:cargo-inputs (("rust-cc" ,rust-cc-1)
+                       ("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-nix" ,rust-nix-0.27)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3)
+                       ("rust-udev" ,rust-udev-0.8)
+                       ("rust-windows-sys" ,rust-windows-sys-0.48))))
+    (home-page "https://github.com/ruabmbua/hidapi-rs")
+    (synopsis "Rust-y wrapper around @code{hidapi}")
+    (description "This crate provides a Rust abstraction over the features of
+the C library @code{hidapi}.  Based off of @code{hidapi-rs} by Osspial.")
+    (license license:expat)))
+
 (define-public rust-hexf-parse-0.1
   (package
     (inherit rust-hexf-parse-0.2)
-- 
2.45.2





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Wed, 04 Sep 2024 21:02:02 GMT) Full text and rfc822 format available.

Message #26 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH v2 2/3] gnu: rust-udev: Update to 0.8.
Date: Wed,  4 Sep 2024 22:59:47 +0200
* gnu/packages/crates-io.scm (rust-udev-0.7): Rename to rust-udev-0.8;
[native-inputs]: add pkg-config;
[inputs]: add eudev;
[arguments]<tests?>: disable tests as they are supposed to run on a real
machine and not in the Guix build sandbox;
<cargo-inputs>: add rust-io-lifetimes and rust-libc;
[description]: expand description to match Guix project standards;
[synopsis]: ditto.

Change-Id: I77687eadda6348d589970aef8e45a986b8651166
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d04e4a11c4..37b50d3b69 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -85865,28 +85865,38 @@ (define-public rust-ucd-util-0.1
     (license (list license:asl2.0
                    license:expat))))
 
-(define-public rust-udev-0.7
+(define-public rust-udev-0.8
   (package
     (name "rust-udev")
-    (version "0.7.0")
+    (version "0.8.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "udev" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "06hr927z0fdn7ay0p817b9x19i5fagmpmvz95yhl4d1pf3bbpgaf"))))
+        (base32 "18f5vkhjcljw1p5gfvy61p1837n27d7h2l3x45pywa5y49p1q1ah"))))
     (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev))
     (arguments
-     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+     `(#:tests? #f ;tests are supposed to be run on real hardware
+       #:cargo-inputs (("rust-io-lifetimes" ,rust-io-lifetimes-1)
+                       ("rust-libc" ,rust-libc-0.2)
                        ("rust-libudev-sys" ,rust-libudev-sys-0.1)
                        ("rust-mio" ,rust-mio-0.6)
                        ("rust-mio" ,rust-mio-0.7)
                        ("rust-mio" ,rust-mio-0.8)
                        ("rust-pkg-config" ,rust-pkg-config-0.3))))
     (home-page "https://github.com/Smithay/udev-rs")
-    (synopsis "libudev bindings for Rust")
-    (description "This package provides libudev bindings for Rust.")
+    (synopsis "Safe @code{libudev} bindings for Rust")
+    (description "This crate provides a safe wrapper around the native
+@code{libudev} library.  It applies the RAII pattern and Rust lifetimes to
+ensure safe usage of all @code{libudev} functionality.  The RAII pattern ensures
+that all acquired resources are released when they're no longer needed, and Rust
+lifetimes ensure that resources are released in a proper order.")
     (license license:expat)))
 
 (define-public rust-ufmt-0.2
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Sun, 20 Oct 2024 22:58:02 GMT) Full text and rfc822 format available.

Message #29 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: paul <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Subject: Re: Add rust-hidapi
Date: Mon, 21 Oct 2024 00:56:41 +0200
[Message part 1 (text/plain, inline)]
Hi Guix , this is a friendly ping. I'm sending a patchset rebased on 
current master.

Thank you for your work,

giacomo
[Message part 2 (text/html, inline)]

Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Sun, 20 Oct 2024 22:58:02 GMT) Full text and rfc822 format available.

Message #32 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH v2 3/3] gnu: Add rust-hidapi-2.
Date: Mon, 21 Oct 2024 00:56:43 +0200
* gnu/packages/crates-io.scm (rust-hidapi-2): New variable.

Change-Id: I3a8bb6e7d6e555fba8df036053b146d414b14198
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8bbed8a5a8..43f78234ee 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32260,6 +32260,36 @@ (define-public rust-hexf-parse-0.2
 provided for each type.")
     (license license:cc0)))
 
+(define-public rust-hidapi-2
+  (package
+    (name "rust-hidapi")
+    (version "2.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "hidapi" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0g62241lsd88blvmnwl4mwa556dljazc3g2ymq6zx27y4082an4y"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev hidapi))
+    (arguments
+     `(#:cargo-inputs (("rust-cc" ,rust-cc-1)
+                       ("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-nix" ,rust-nix-0.27)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3)
+                       ("rust-udev" ,rust-udev-0.8)
+                       ("rust-windows-sys" ,rust-windows-sys-0.48))))
+    (home-page "https://github.com/ruabmbua/hidapi-rs")
+    (synopsis "Rust-y wrapper around @code{hidapi}")
+    (description "This crate provides a Rust abstraction over the features of
+the C library @code{hidapi}.  Based off of @code{hidapi-rs} by Osspial.")
+    (license license:expat)))
+
 (define-public rust-hexf-parse-0.1
   (package
     (inherit rust-hexf-parse-0.2)
-- 
2.46.0





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Sun, 20 Oct 2024 22:58:03 GMT) Full text and rfc822 format available.

Message #35 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1.
Date: Mon, 21 Oct 2024 00:56:41 +0200
* gnu/packages/crates-io.scm (rust-libudev-sys-0.1): New variable.

Change-Id: I278a561e7dd8c10bf813b5ac4fded7fe74d391cc
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c08ccd29fd..e97f3c6a89 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39152,6 +39152,30 @@ (define-public rust-libsqlite3-sys-0.20
         ("rust-pkg-config" ,rust-pkg-config-0.3)
         ("rust-vcpkg" ,rust-vcpkg-0.2))))))
 
+(define-public rust-libudev-sys-0.1
+  (package
+    (name "rust-libudev-sys")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libudev-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09236fdzlx9l0dlrsc6xx21v5x8flpfm3d5rjq9jr5ivlas6k11w"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev))
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (home-page "https://github.com/dcuddeback/libudev-sys")
+    (synopsis "FFI bindings to @code{libudev}")
+    (description "This package provides FFI bindings to @code{libudev}.")
+    (license license:expat)))
+
 (define-public rust-libxml-0.3
   (package
     (name "rust-libxml")

base-commit: 5ab3c4c1e43ebb637551223791db0ea3519986e1
-- 
2.46.0





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#70705; Package guix-patches. (Sun, 20 Oct 2024 22:58:03 GMT) Full text and rfc822 format available.

Message #38 received at 70705 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 70705 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH v2 2/3] gnu: rust-udev: Update to 0.8.
Date: Mon, 21 Oct 2024 00:56:42 +0200
* gnu/packages/crates-io.scm (rust-udev-0.7): Rename to rust-udev-0.8;
[native-inputs]: add pkg-config;
[inputs]: add eudev;
[arguments]<tests?>: disable tests as they are supposed to run on a real
machine and not in the Guix build sandbox;
<cargo-inputs>: add rust-io-lifetimes and rust-libc;
[description]: expand description to match Guix project standards;
[synopsis]: ditto.

Change-Id: I77687eadda6348d589970aef8e45a986b8651166
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e97f3c6a89..8bbed8a5a8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -85879,28 +85879,38 @@ (define-public rust-ucd-util-0.1
     (license (list license:asl2.0
                    license:expat))))
 
-(define-public rust-udev-0.7
+(define-public rust-udev-0.8
   (package
     (name "rust-udev")
-    (version "0.7.0")
+    (version "0.8.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "udev" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "06hr927z0fdn7ay0p817b9x19i5fagmpmvz95yhl4d1pf3bbpgaf"))))
+        (base32 "18f5vkhjcljw1p5gfvy61p1837n27d7h2l3x45pywa5y49p1q1ah"))))
     (build-system cargo-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list eudev))
     (arguments
-     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+     `(#:tests? #f ;tests are supposed to be run on real hardware
+       #:cargo-inputs (("rust-io-lifetimes" ,rust-io-lifetimes-1)
+                       ("rust-libc" ,rust-libc-0.2)
                        ("rust-libudev-sys" ,rust-libudev-sys-0.1)
                        ("rust-mio" ,rust-mio-0.6)
                        ("rust-mio" ,rust-mio-0.7)
                        ("rust-mio" ,rust-mio-0.8)
                        ("rust-pkg-config" ,rust-pkg-config-0.3))))
     (home-page "https://github.com/Smithay/udev-rs")
-    (synopsis "libudev bindings for Rust")
-    (description "This package provides libudev bindings for Rust.")
+    (synopsis "Safe @code{libudev} bindings for Rust")
+    (description "This crate provides a safe wrapper around the native
+@code{libudev} library.  It applies the RAII pattern and Rust lifetimes to
+ensure safe usage of all @code{libudev} functionality.  The RAII pattern ensures
+that all acquired resources are released when they're no longer needed, and Rust
+lifetimes ensure that resources are released in a proper order.")
     (license license:expat)))
 
 (define-public rust-ufmt-0.2
-- 
2.46.0





Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Mon, 21 Oct 2024 05:23:03 GMT) Full text and rfc822 format available.

Notification sent to paul <goodoldpaul <at> autistici.org>:
bug acknowledged by developer. (Mon, 21 Oct 2024 05:23:03 GMT) Full text and rfc822 format available.

Message #43 received at 70705-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Giacomo Leidi <goodoldpaul <at> autistici.org>
Cc: 70705-done <at> debbugs.gnu.org
Subject: Re: [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1.
Date: Mon, 21 Oct 2024 08:20:36 +0300
[Message part 1 (text/plain, inline)]
Thanks for the patches and for re-sending them as I took forever to
actually apply them.

Patches either applied to the rust-team branch, which I hope to merge
back into master soon.

-- 
Efraim Flashner   <efraim <at> 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
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 18 Nov 2024 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.