summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorPetr Hodina <phodina@protonmail.com>2022-01-10 19:56:11 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-01-21 00:44:25 +0100
commitc975b40f8f4d46c2486deb0080b9e5c4262497c5 (patch)
tree623df97cfb16c10ad6418ca4e713ad0a0aec564e /gnu/packages
parentd14d33b2acbf4076afce7bf7083e6f8a7a9c3090 (diff)
gnu: Add rust-field-offset-0.3.
* gnu/packages/crates-io.scm (rust-field-offset-0.3): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 20279f370c..e5f11f7556 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -19642,6 +19642,30 @@ representation.")
(license (list license:asl2.0
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 "This package provides safe pointer-to-member
+implementation.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-findshlibs-0.5
(package
(name "rust-findshlibs")