summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-28 15:20:01 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-28 16:53:02 +0300
commit0aa98c69845bf3967f2bbce768e25fbe79c50bcb (patch)
tree224e69b5d7e9e5f4ede6f811627e20ff32d37252 /gnu
parent7b20853a1e01876ce8f7e2a35fb269a1701e0095 (diff)
downloadguix-0aa98c69845bf3967f2bbce768e25fbe79c50bcb.tar.gz
gnu: Add rust-widestring.
* gnu/packages/crates-io.scm (rust-widestring): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dcf7a501ac..6b080ae21a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1080,6 +1080,31 @@ in Rust.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-widestring
+  (package
+    (name "rust-widestring")
+    (version "0.4.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "widestring" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "1dhx6dndjsz1y7c9w06922412kdxyrrkqblvggm76mh8z17hxz7g"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-development-inputs
+       (("rust-winapi" ,rust-winapi))))
+    (home-page "https://github.com/starkat99/widestring-rs")
+    (synopsis "Wide string Rust FFI library")
+    (description
+     "A wide string Rust FFI library for converting to and from wide strings,
+such as those often used in Windows API or other FFI libaries.  Both UTF-16 and
+UTF-32 types are provided, including support for malformed encoding.")
+    (license (list license:asl2.0
+                   license:expat))))
+
 (define-public rust-winapi
   (package
     (name "rust-winapi")