From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wFteIeF8UWdVCgAA62LTzQ:P1 (envelope-from ) for ; Thu, 05 Dec 2024 10:13:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wFteIeF8UWdVCgAA62LTzQ (envelope-from ) for ; Thu, 05 Dec 2024 11:13:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=inria.fr header.s=dc header.b=EnWXfW8X; dmarc=pass (policy=none) header.from=inria.fr; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733393633; a=rsa-sha256; cv=none; b=Y4FXhtrRfw/ZvDX5FNBw2T9GLzb+ohkxvkp0Zsk2FoMvhjF26lfByp4JfPjqT3rEmHC9QK jnjQWB/yhQ/Xg6csuhK3s0gbfV7rMaV8h42mux0BlPOf+KOTVjYJ8sgBEuQD2etsCRAy4v OZDj+d1FmnivRnnyYFXKGi+hcYdvVQiUVRWfCvNBLhv7KLbJcn3xrZtsfBti/E291Hbrt/ 7/plwRXPUitDV2PGCYewdKlIjXOUxQJhYretjI+g6tinQ8e07wrJDHAb05akJQyypB0ghx F4fxaQCAAsK+dr5cMH3r7Fs7dB2pWoFk97Pb+jQq0MLSfFs6blCBJ/ckZ9GrQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=inria.fr header.s=dc header.b=EnWXfW8X; dmarc=pass (policy=none) header.from=inria.fr; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733393633; 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:dkim-signature; bh=ZOG3TRqwPVhx6NcmbCkycIrOdf7n+H9t1TPEOBBCJeo=; b=HRHoSZEIHyrNPMnJzvinixOWibzpvrsj+RsiDWlUw7MOQJs6JArvzZTGe8WNv9nVlxPPG+ x1ZrS60zetka9PCB8JbzrZmHtpz1osbgjySqVYVtCp1JALm3iKXBCTCoxvn26Pk8lvnizz tqUZXx1+yWfGoJI+bR+HYUFwKBsSCwdgtL89LyLoeg3VGdebXHv8tnh84mguS9LbX9/R2A ZczB5ja/08jYTjBEiSbRET08aCpzHhi53aJm0iqziKb+PgLv/vF1xjOUxD+4KE2e2Lcp9H Sql4mzJvd6rJVtdjfHS2ttGBr5L/ghLF7BuLQipP255//J3B5sZjpVNMz4pzGg== 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 67EDD7B9EB for ; Thu, 05 Dec 2024 11:13:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJ8rH-0006Fw-IT; Thu, 05 Dec 2024 05:13:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJ8rG-0006Fg-2g for guix-devel@gnu.org; Thu, 05 Dec 2024 05:13:18 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJ8rD-00013i-02 for guix-devel@gnu.org; Thu, 05 Dec 2024 05:13:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=ZOG3TRqwPVhx6NcmbCkycIrOdf7n+H9t1TPEOBBCJeo=; b=EnWXfW8XQDp+myRclDRqpqe4oH1o9bqdLeNrxyAqnVmmaHeld7u6nozY cehwANOxlV/7Oz8MVsDXZHcgOsbULdR8hNRPUyxx/O9D2cBHYY1fUvEkH V/16qkHbK1oQC3LfI6TbXOwGf82LOcqlZA53mH9jeaSj/eRywCJBgbMtg w=; X-IronPort-AV: E=Sophos;i="6.12,210,1728943200"; d="scan'208";a="103514739" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2024 11:13:09 +0100 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Cc: guix-devel , Nicolas Graves Subject: How to build Rust packages In-Reply-To: (Efraim Flashner's message of "Thu, 5 Dec 2024 09:06:50 +0200") References: <87ldwy3uhr.fsf@inria.fr> <87o71tanwy.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 15 Frimaire an 233 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour du Chevreuil X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 05 Dec 2024 11:13:07 +0100 Message-ID: <87h67iv3nw.fsf_-_@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.39 X-Spam-Score: -6.39 X-Migadu-Queue-Id: 67EDD7B9EB X-Migadu-Scanner: mx10.migadu.com X-TUID: F9/L0fqIhmWs Hello, Efraim Flashner skribis: > I still have a copy of the code on my machine but unfortunately it no > longer builds due to the constant churn of rust packages. > > One thing I remember explicitly about it was that building end packages > was faster than the current method, and that was before taking into > account reusing build artifacts. > > https://notabug.org/maximed/cargoless-rust-experiments Neat. > Another idea which I'm not in love with is what Debian does. They grab > all of the sources into one build environment and then build everything. > It simplifies the dependency management of the sources but for us it > would make it so that we can't touch anything in rust without causing a > full rebuild of everything. I believe this is also what Nixpkgs does, as discussed in this thread: https://toot.aquilenet.fr/@civodul/113532478383900515 I=E2=80=99m not a fan either. But I think one of the main criteria here sh= ould be long-term maintainability, which is influenced by internal design issues and by how we design our relation with the external packaging tool. By internal issues I mean things like #:cargo-inputs instead of regular inputs, which makes the whole thing hard to maintain and causes friction. (See .) As for the relation with Cargo and crates.io, the question is should we map packages one-to-one? Is it worth it? If the answer is yes, do we have the tools to maintain it in the long run. Ludo=E2=80=99.