all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giacomo Leidi via Guix-patches via <guix-patches@gnu.org>
To: 70705@debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul@autistici.org>,
	Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#70705] [PATCH 2/3] gnu: Add rust-udev-0.8.
Date: Wed,  1 May 2024 22:39:39 +0200	[thread overview]
Message-ID: <ccdc515fa8a527c30129c7f63467f39211519813.1714595980.git.goodoldpaul@autistici.org> (raw)
In-Reply-To: <b9889abd0e4866d3ff05a691ac587a5a4423bf11.1714595980.git.goodoldpaul@autistici.org>

* 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





  reply	other threads:[~2024-05-01 20:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Giacomo Leidi via Guix-patches via [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ccdc515fa8a527c30129c7f63467f39211519813.1714595980.git.goodoldpaul@autistici.org \
    --to=guix-patches@gnu.org \
    --cc=70705@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=goodoldpaul@autistici.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.