From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: rust: cargo build-system: how to handle libraries Date: Tue, 27 Dec 2016 23:57:00 +0000 Message-ID: <8760m5c4dv.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cM1by-0005Lo-31 for guix-devel@gnu.org; Tue, 27 Dec 2016 18:56:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cM1bt-0000Br-83 for guix-devel@gnu.org; Tue, 27 Dec 2016 18:56:54 -0500 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 Hi, I've got about 94 rust packages on my todo list for our (secushare) current prototype version. Today I assembled the full list of them and started with the crate `libc`. This crate comes with no Cargo.toml file, where I already am aware of the limitation of our cargo build-system. Before I can start my task now, I have to enhance the cargo build-system in guix. Now I'm very new to packaging for rust. When a Cargo.toml is in place, you can find lots of information very easily in search engines, but without it gets very difficult. Please correct me if this is wrong: We run (or this is the default) cargo with `--bin`, which is necessary for everything which needs to be compiled and features a Cargo.toml. To "build" libraries, we have to explicitly tell cargo to not run/build/whatever with --bin ? Or do I have to interprete what I read a while ago "we just need to copy the libraries to the store" as literally "if we encounter no Cargo.toml, let's copy everything to the store as is"? CC'ing David, Eric, and Ludovic as you all were involved to some degree in the discussion before about cargo and rust. -- ♥Ⓐ ng0 PGP keys and more: https://n0is.noblogs.org/ http://ng0.chaosnet.org