From e94f8c79b58da48461b609aa0f06a09a87a0a662 Mon Sep 17 00:00:00 2001 From: Nicholas von Klitzing Date: Wed, 15 Dec 2021 23:47:38 +0100 Subject: [PATCH 17/29] gnu: Add rust-field-offset-0.3. * gnu/packages/crates-gtk.scm (rust-field-offset-0.3): New variable. --- gnu/packages/crates-gtk.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 06c8d81d8a..ce8c8da3c5 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -1314,6 +1314,29 @@ (define-public rust-gdk-pixbuf-0.14 (description "Rust bindings for the GdkPixbuf library") (license license:expat))) +(define-public rust-field-offset-0.3 + (package + (name "rust-field-offset") + (version "0.3.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "field-offset" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "14pvxz7yr0r3mlhaf65zva3r9d0kqid01wdw7ngx7jsh2jam870y")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? + #t + #:cargo-inputs + (("rust-memoffset" ,rust-memoffset-0.6) + ("rust-rustc-version" ,rust-rustc-version-0.3)))) + (home-page "https://github.com/Diggsey/rust-field-offset") + (synopsis "Safe pointer-to-member implementation") + (description "Safe pointer-to-member implementation") + (license (list license:expat license:asl2.0)))) + (define-public rust-gtk-0.8 (package (name "rust-gtk") -- 2.34.0