summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-05 17:18:33 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-06 15:45:58 +0300
commit6f5cd37a60b0082c703c3a675abd0d1ef46118e7 (patch)
tree8bba958dffa903bae6182d04d1d008d3bab9bf91 /gnu/packages
parent412c43b42350da4b91dacc11721d1b876e9cb62e (diff)
downloadpatches-6f5cd37a60b0082c703c3a675abd0d1ef46118e7.tar
patches-6f5cd37a60b0082c703c3a675abd0d1ef46118e7.tar.gz
gnu: Add rust-libloading.
* gnu/packages/crates-io.scm (rust-libloading): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 204257e8fc..e4da943c80 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1097,6 +1097,33 @@ the platform that libc is compiled for.")
(license (list license:expat
license:asl2.0))))
+(define-public rust-libloading
+ (package
+ (name "rust-libloading")
+ (version "0.5.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "libloading" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0lyply8rcqc8agajzxs7bq6ivba9dnn1i68kgb9z2flnfjh13cgj"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cc" ,rust-cc)
+ ("rust-winapi" ,rust-winapi))))
+ (home-page "https://github.com/nagisa/rust_libloading/")
+ (synopsis "Rust library for loading dynamic libraries")
+ (description
+ "A memory-safer wrapper around system dynamic library loading primitives.
+The most important safety guarantee by this library is prevention of
+dangling-Symbols that may occur after a Library is unloaded. Using this library
+allows loading dynamic libraries (also known as shared libraries) as well as use
+functions and static variables these libraries contain.")
+ (license license:isc)))
+
(define-public rust-log
(package
(name "rust-log")