aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-28 16:20:13 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-28 16:53:06 +0300
commitb3038b3826e4b4a6fc1e479ec4cc20a2263866f7 (patch)
treefed177705112de19a9236a99c260d8300700cfd0 /gnu/packages
parentd791d309c643986388fbd9e127a577995701fb7c (diff)
downloadpatches-b3038b3826e4b4a6fc1e479ec4cc20a2263866f7.tar
patches-b3038b3826e4b4a6fc1e479ec4cc20a2263866f7.tar.gz
gnu: Add rust-safemem.
* gnu/packages/crates-io.scm (rust-safemem): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 81001024ee..3589e8291a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1118,6 +1118,26 @@ rust-lang/rust integration.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-safemem
+ (package
+ (name "rust-safemem")
+ (version "0.3.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "safemem" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1l1ljkm4lpyryrv2ndaxi1f7z1f3v9bwy1rzl9f9mbhx04iq9c6j"))))
+ (build-system cargo-build-system)
+ (home-page "https://github.com/abonander/safemem")
+ (synopsis "Safe wrappers for memory-accessing functions")
+ (description
+ "Safe wrappers for memory-accessing functions, like @code{std::ptr::copy()}.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-scoped-tls
(package
(name "rust-scoped-tls")