Subject: [bug#73856] [PATCH 1/8] gnu: Add rust-libusb1-sys-0.7.

From: Wilko Meyer <[email-masked]>
Date: Fri, 18 Oct 2024 01:56:34 +0200

* gnu/packages/crates-io.scm (rust-libusb1-sys-0.7): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c08ccd29fd..ea4f087b75 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39778,6 +39778,28 @@ (define-public rust-libudev-sys-0.1
     (description "This package provides FFI bindings to libudev.")
     (license license:expat)))
 
+(define-public rust-libusb1-sys-0.7
+  (package
+    (name "rust-libusb1-sys")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libusb1-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03yfx469d1ldpw2h21hy322f5a0h1ahlgy4s6yjipzy4gbg0l1fs"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-cc" ,rust-cc-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3)
+                       ("rust-vcpkg" ,rust-vcpkg-0.2))))
+    (home-page "https://github.com/a1ien/rusb")
+    (synopsis "FFI bindings for libusb")
+    (description "This package provides FFI bindings for libusb.")
+    (license license:expat)))
+
 (define-public rust-listenfd-1
   (package
     (name "rust-listenfd")
-- 
2.46.0