From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 74/86] gnu: Add rust-mio. Date: Tue, 3 Jan 2017 23:36:30 +0000 Message-ID: <20170103233642.3181-75-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYfZ-0004gV-Uq for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYfV-0002Li-Fb for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:06 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYfV-0002Ky-8r for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:01 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYfT-000316-W0 for guix-devel@gnu.org; Wed, 04 Jan 2017 00:39:00 +0100 In-Reply-To: <20170103233642.3181-1-ng0@libertad.pw> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/rust.scm (rust-mio): New variable. --- gnu/packages/rust.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 030b014a1..6c1e22afe 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -2023,3 +2023,35 @@ avoid common pitfalls in Rust.") (description "Lacycell provides a library providing a lazily filled Cell struct.") (license (list license:expat license:asl2.0)))) + +(define-public rust-mio + (package + (name "rust-mio") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "mio" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "101ybpbfc08403ca8gnsvys5sxmhfa0ifzqiy9vj1gcnzp4ksjav")))) + (build-system cargo-build-system) + (native-inputs + `(("rust-bytes" ,rust-bytes "src") + ("rust-env-logger" ,rust-env-logger "src") + ("rust-tempdir" ,rust-tempdir "src"))) + (inputs + `(("rust-lazycell" ,rust-lazycell "src") + ("rust-libc" ,rust-libc "src") + ("rust-log" ,rust-log "src") + ("rust-net2" ,rust-net2 "src") + ("rust-nix" ,rust-nix "src") + ("rust-slab" ,rust-slab "src"))) + (home-page "https://github.com/carllerche/mio") + (synopsis "Metal IO library for Rust") + (description + "MIO is a lightweight IO library for Rust with a focus on adding +as little overhead as possible over the OS abstractions.") + (license license:expat))) -- 2.11.0