From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: Re: rust: Crate Dependencies Date: Thu, 29 Dec 2016 12:35:37 +0100 Message-ID: References: <20161228155134.3dedfd06@scratchpost.org> <20161229121255.750fa1e3@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMYzn-0003MZ-9b for guix-devel@gnu.org; Thu, 29 Dec 2016 06:35:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMYzj-0003wX-2c for guix-devel@gnu.org; Thu, 29 Dec 2016 06:35:43 -0500 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:36718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cMYzi-0003wP-RK for guix-devel@gnu.org; Thu, 29 Dec 2016 06:35:39 -0500 Received: by mail-qt0-x229.google.com with SMTP id k15so131276940qtg.3 for ; Thu, 29 Dec 2016 03:35:38 -0800 (PST) In-Reply-To: <20161229121255.750fa1e3@scratchpost.org> 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: Danny Milosavljevic Cc: guix-devel Hi Danny, > How does rustc find the (Rust) dependencies when building a package in cargo-build-system? You should be able to override the default rust or cargo version by passing #:rustc or/and #:cargo as arguments to the build-system. See guix/build-system/cargo.scm. > I read that there are actual Rust binary libraries, seldomly used, and everything-included-only-as-source otherwise. How do I specify which it is? By actual Rust binary library I assume you mean a library with a C ABI that can be dynamically linked against, written in rust. A library like that should or would contain a Cargo.lock file nailing down all the crate versions required, making sure that the project can be built using the same rustc and cargo versions. With a Cargo.lock file present the only remaining issue is figuring out whether it can be built with the rustc release or if it requires features from beta/nightly. I don't know a specific example of one, but I also read that it is possible. I think that the cargo install should take care of installing such a library, but I don't think it's implemented yet. HTH!