From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 75/86] gnu: Add rust-tokio-core. Date: Tue, 3 Jan 2017 23:36:31 +0000 Message-ID: <20170103233642.3181-76-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYfp-0004rq-Lb for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYfn-0002Xl-Dz for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:21 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYfn-0002WT-6x for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:19 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYfm-0003D7-0e for guix-devel@gnu.org; Wed, 04 Jan 2017 00:39:18 +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-tokio-core): New variable. --- gnu/packages/rust.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 6c1e22afe..2facc9fd3 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -2055,3 +2055,33 @@ avoid common pitfalls in Rust.") "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))) + +(define-public rust-tokio-core + (package + (name "rust-tokio-core") + (version "0.1.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "tokio-core" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0n3y6j2xy0psj0iv86pz6w0vdzippmk1qzrsahmc5fksjcz6nhaj")))) + (build-system cargo-build-system) + (native-inputs + `(("rust-env-logger" ,rust-env-logger "src") + ("rust-libc" ,rust-libc "src"))) + (inputs + `(("rust-futures" ,rust-futures "src") + ("rust-log" ,rust-log "src") + ("rust-mio" ,rust-mio "src") + ("rust-scoped-tls" ,rust-scoped-tls "src") + ("rust-slab" ,rust-slab "src"))) + (home-page "https://github.com/tokio-rs/tokio-core") + (synopsis "Core I/O and event loop primitives for asynchronous I/O in Rust") + (description + "Tokio-core provides Core I/O and event loop primitives for +asynchronous I/O in Rust.") + (license (list license:expat license:asl2.0)))) -- 2.11.0