From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UH4yBFgLvmCcGwEAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 14:04:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oHMuO1cLvmBZAwAAbx9fmQ (envelope-from ) for ; Mon, 07 Jun 2021 12:04:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B9391FE64 for ; Mon, 7 Jun 2021 14:04:39 +0200 (CEST) Received: from localhost ([::1]:42234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqDzi-0007WJ-JW for larch@yhetil.org; Mon, 07 Jun 2021 08:04:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqDzL-0007Nh-Jr for guix-devel@gnu.org; Mon, 07 Jun 2021 08:04:16 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:59211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqDzF-0008DT-Pr for guix-devel@gnu.org; Mon, 07 Jun 2021 08:04:15 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4FzBqV57rlz1tK7b; Mon, 7 Jun 2021 14:04:06 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4FzBqV2glrz1r0w4; Mon, 7 Jun 2021 14:04:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id zgnWUSWVjfCn; Mon, 7 Jun 2021 14:04:05 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-54-164.dynamic.mnet-online.de [188.174.54.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Mon, 7 Jun 2021 14:04:05 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 2BAEA60271; Mon, 7 Jun 2021 14:04:11 +0200 (CEST) Subject: Re: Some more rust/cargo insights From: Hartmut Goebel To: Pjotr Prins References: <7d180f4a-3e5f-374b-0fcd-6ae5b438a1c8@crazy-compilers.com> <20210606183857.gthvipntymstivh4@thebird.nl> <1030d59f-32ef-bab0-00f7-aa81f2133517@crazy-compilers.com> <20210607082830.uo73mksfvogfxxf6@thebird.nl> Organization: crazy-compilers.com Message-ID: Date: Mon, 7 Jun 2021 14:04:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210607082830.uo73mksfvogfxxf6@thebird.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: none client-ip=2001:a60:0:28:0:1:25:1; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623067479; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PrVkTp4NeYziJKZ4uxnSzONXRVKl+VwHXED7VExv+xk=; b=HgHkIdLmZmm5LjhWtZ0He+2AzPLD7ksygxsDFQuN2V7KI/u0DQRsJM1AgqhvBmbjxe7vFq ILgZZrTcAHhzWMc6hATEjWuI/xfxrnbwVG2acjvgPi/J0uumPO7nRSNKHhPSuXNyhEUvdL /7kO2yL9wVpjmX+TyUuuVjasMAflzbsmncrOdG/lBcLqXMvFivubJFd9iA7ggIWtrYUh7Y XoTM9jszJYr2+MI9k+ZBJEOJjkC1+n+MDE4ODOLp38pGmdz/Ndbm0SU6Sb5tqjJ2Za15u2 VjWAqL4fO1qfqoQIrSsVz2qKJwnkO7bh9wwCKWlNiMEk/iEX6gMKXR6Kvo8tdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623067479; a=rsa-sha256; cv=none; b=Vlj0hxhWfNAC639pNttWkWaLZI2iPbmaBgVHDVM0UfrR6HNXsuoTxWl/Dc8fzzX51rbPZs 2pawwutTbDgC9Z2rKiE99hF0TozvsL2UVQoShnxvrwfd22jMnyNMJB7J0lzumvSKF94veE IYtr7XXxXTcYSwtQU5dacvw6cmDvt6fRvlI2JKtQ7iRmiRcXixGUzKyGPYxFiahh/AR43d lvFGACb1npRABTN47eEZbpaChcwg4NtMgUIvWEN1tdFlPB2SzOpRNe/geIJql8rKIN+gzl PokueMhUIn9+Ijgiqe3LgEdBOtJiMACtnZqVTzAjfhhY3nUun43VUlKuViS5Lw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -0.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 8B9391FE64 X-Spam-Score: -0.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: r65pDqvUnny4 Am 07.06.21 um 10:28 schrieb Pjotr Prins: > Exactly my idea. One challenge will be that the source of dependencies > need to be available - think of it as include files. One thing we > could do as ship them as part of the Guix package. Or have a separate > one for sources. We do that for include files already. Well, the current cargo-build-system already handles the source dependencies. We need to aim towards pre-built libraries (rlib, much like .a files in C, I assume) When cargo calls rustc, the command looks like: LD_LIBRARY_PATH='$PWD/target/release/deps:/gnu/store/…-rust-1.45.2/lib' \ rustc … src/lib.rs --crate-type lib \ -L dependency=$PWD/target/release/deps \ --extern xmlparser=$PWD/target/release/deps/libxmlparser-53596ac1828b1c97.rmeta Thus I assume one could pass the rlib's of all dependencies in -L and the respective mata-data in --extern -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |