guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 22/86] gnu: Add rust-bytes.


From: ng0
Subject: [PATCH 22/86] gnu: Add rust-bytes.
Date: Tue, 3 Jan 2017 23:35:38 +0000

* gnu/packages/rust.scm (rust-bytes): New variable.
---
 gnu/packages/rust.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index ac5272d32..2a77ccb7c 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -731,3 +731,24 @@ as proposed in RFC 1158.  They expand the surface area of 
@code{std::net}
 to bind more low-level interfaces and provide more advanced customization
 and configuration of sockets.")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-bytes
+  (package
+    (name "rust-bytes")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "bytes" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "09vcp9kh12pva2xn2ir79k90v1a0id8f4sdv1abn5ifw2bqsyaf1"))))
+    (build-system cargo-build-system)
+    (native-inputs `(("rust-rand" ,rust-rand "src")))
+    (home-page "https://github.com/carllerche/bytes";)
+    (synopsis "Types and traits for working with bytes")
+    (description
+     "Bytes provides a utility library for working with bytes.")
+    (license license:expat)))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]