all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#70705] Add rust-hidapi
@ 2024-05-01 20:35 paul via Guix-patches via
  2024-05-01 20:39 ` [bug#70705] [PATCH 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: paul via Guix-patches via @ 2024-05-01 20:35 UTC (permalink / raw)
  To: 70705

Hello Guix,

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


Thank you for your work,

giacomo





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

* [bug#70705] [PATCH 1/3] gnu: Add rust-libudev-sys-0.1.
  2024-05-01 20:35 [bug#70705] Add rust-hidapi paul via Guix-patches via
@ 2024-05-01 20:39 ` Giacomo Leidi via Guix-patches via
  2024-05-01 20:39   ` [bug#70705] [PATCH 2/3] gnu: Add rust-udev-0.8 Giacomo Leidi via Guix-patches via
  2024-05-01 20:39   ` [bug#70705] [PATCH 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
  2024-09-04 17:31 ` [bug#70705] Add rust-hidapi paul via Guix-patches via
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-05-01 20:39 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* [bug#70705] [PATCH 2/3] gnu: Add rust-udev-0.8.
  2024-05-01 20:39 ` [bug#70705] [PATCH 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
@ 2024-05-01 20:39   ` Giacomo Leidi via Guix-patches via
  2024-05-01 20:39   ` [bug#70705] [PATCH 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
  1 sibling, 0 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-05-01 20:39 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* [bug#70705] [PATCH 3/3] gnu: Add rust-hidapi-2.
  2024-05-01 20:39 ` [bug#70705] [PATCH 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
  2024-05-01 20:39   ` [bug#70705] [PATCH 2/3] gnu: Add rust-udev-0.8 Giacomo Leidi via Guix-patches via
@ 2024-05-01 20:39   ` Giacomo Leidi via Guix-patches via
  1 sibling, 0 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-05-01 20:39 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* [bug#70705] Add rust-hidapi
  2024-05-01 20:35 [bug#70705] Add rust-hidapi paul via Guix-patches via
  2024-05-01 20:39 ` [bug#70705] [PATCH 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
@ 2024-09-04 17:31 ` paul via Guix-patches via
  2024-09-04 20:59 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: paul via Guix-patches via @ 2024-09-04 17:31 UTC (permalink / raw)
  To: 70705

Dear Guix,

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


Thank you for your work,


giacomo





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

* [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1.
  2024-05-01 20:35 [bug#70705] Add rust-hidapi paul via Guix-patches via
  2024-05-01 20:39 ` [bug#70705] [PATCH 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
  2024-09-04 17:31 ` [bug#70705] Add rust-hidapi paul via Guix-patches via
@ 2024-09-04 20:59 ` Giacomo Leidi via Guix-patches via
  2024-09-04 20:59   ` [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8 Giacomo Leidi via Guix-patches via
  2024-09-04 20:59   ` [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
  2024-10-20 22:56 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
  2024-10-20 22:56 ` [bug#70705] Add rust-hidapi paul via Guix-patches via
  4 siblings, 2 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-09-04 20:59 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8.
  2024-09-04 20:59 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
@ 2024-09-04 20:59   ` Giacomo Leidi via Guix-patches via
  2024-09-04 20:59   ` [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
  1 sibling, 0 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-09-04 20:59 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2.
  2024-09-04 20:59 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
  2024-09-04 20:59   ` [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8 Giacomo Leidi via Guix-patches via
@ 2024-09-04 20:59   ` Giacomo Leidi via Guix-patches via
  1 sibling, 0 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-09-04 20:59 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1.
  2024-05-01 20:35 [bug#70705] Add rust-hidapi paul via Guix-patches via
                   ` (2 preceding siblings ...)
  2024-09-04 20:59 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
@ 2024-10-20 22:56 ` Giacomo Leidi via Guix-patches via
  2024-10-20 22:56   ` [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8 Giacomo Leidi via Guix-patches via
                     ` (2 more replies)
  2024-10-20 22:56 ` [bug#70705] Add rust-hidapi paul via Guix-patches via
  4 siblings, 3 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-10-20 22:56 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* [bug#70705] Add rust-hidapi
  2024-05-01 20:35 [bug#70705] Add rust-hidapi paul via Guix-patches via
                   ` (3 preceding siblings ...)
  2024-10-20 22:56 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
@ 2024-10-20 22:56 ` paul via Guix-patches via
  4 siblings, 0 replies; 13+ messages in thread
From: paul via Guix-patches via @ 2024-10-20 22:56 UTC (permalink / raw)
  To: 70705

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

Hi Guix , this is a friendly ping. I'm sending a patchset rebased on 
current master.

Thank you for your work,

giacomo

[-- Attachment #2: Type: text/html, Size: 557 bytes --]

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

* [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8.
  2024-10-20 22:56 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
@ 2024-10-20 22:56   ` Giacomo Leidi via Guix-patches via
  2024-10-20 22:56   ` [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
  2024-10-21  5:20   ` bug#70705: [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Efraim Flashner
  2 siblings, 0 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-10-20 22:56 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2.
  2024-10-20 22:56 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
  2024-10-20 22:56   ` [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8 Giacomo Leidi via Guix-patches via
@ 2024-10-20 22:56   ` Giacomo Leidi via Guix-patches via
  2024-10-21  5:20   ` bug#70705: [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Efraim Flashner
  2 siblings, 0 replies; 13+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-10-20 22:56 UTC (permalink / raw)
  To: 70705; +Cc: Giacomo Leidi, Efraim Flashner

* 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





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

* bug#70705: [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1.
  2024-10-20 22:56 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
  2024-10-20 22:56   ` [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8 Giacomo Leidi via Guix-patches via
  2024-10-20 22:56   ` [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
@ 2024-10-21  5:20   ` Efraim Flashner
  2 siblings, 0 replies; 13+ messages in thread
From: Efraim Flashner @ 2024-10-21  5:20 UTC (permalink / raw)
  To: Giacomo Leidi; +Cc: 70705-done

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

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@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] 13+ messages in thread

end of thread, other threads:[~2024-10-21  5:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 20:35 [bug#70705] Add rust-hidapi paul via Guix-patches via
2024-05-01 20:39 ` [bug#70705] [PATCH 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
2024-05-01 20:39   ` [bug#70705] [PATCH 2/3] gnu: Add rust-udev-0.8 Giacomo Leidi via Guix-patches via
2024-05-01 20:39   ` [bug#70705] [PATCH 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
2024-09-04 17:31 ` [bug#70705] Add rust-hidapi paul via Guix-patches via
2024-09-04 20:59 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
2024-09-04 20:59   ` [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8 Giacomo Leidi via Guix-patches via
2024-09-04 20:59   ` [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
2024-10-20 22:56 ` [bug#70705] [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Giacomo Leidi via Guix-patches via
2024-10-20 22:56   ` [bug#70705] [PATCH v2 2/3] gnu: rust-udev: Update to 0.8 Giacomo Leidi via Guix-patches via
2024-10-20 22:56   ` [bug#70705] [PATCH v2 3/3] gnu: Add rust-hidapi-2 Giacomo Leidi via Guix-patches via
2024-10-21  5:20   ` bug#70705: [PATCH v2 1/3] gnu: Add rust-libudev-sys-0.1 Efraim Flashner
2024-10-20 22:56 ` [bug#70705] Add rust-hidapi paul via Guix-patches via

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.