From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gIPwH8oWq2MXXgAAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 17:01:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WJMsH8oWq2P6TwEAG6o9tA (envelope-from ) for ; Tue, 27 Dec 2022 17:01:14 +0100 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 21C3913B28 for ; Tue, 27 Dec 2022 17:01:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pACNq-000642-9K; Tue, 27 Dec 2022 11:00:54 -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 1pACNo-00063s-Tb for help-guix@gnu.org; Tue, 27 Dec 2022 11:00:53 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pACNl-0000oZ-44 for help-guix@gnu.org; Tue, 27 Dec 2022 11:00:52 -0500 Date: Tue, 27 Dec 2022 16:00:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1672156843; x=1672416043; bh=uDU2DyPfiplqrvvS3A048A64C+J0hz7nwwT3+RGKWRg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=DWRwWDOP2cVAL4C69IB//wUy/B6jCQA5jEmo1mSl36e96++jnrpsQDrWHZcCMxHrC NE3dn+9gapTWDAg6djTxXFhosOoz3URZGqMeOI0MNGbq7K4A+4D+1GC/EbZhhPR8zq otvb7ciKeuQpidnsYTtk64OvMqm8zeiX4QH7jf5vWO31WprcVgbdbxPaBHCauPTYvp JQn9TMACsjDrevX1l7r8tbjknsG6Zzxq4w+f6IFz3AIM+TVIGhCZrttvc3iN5jCWg+ u1XBKkQ8b0VgUtFCyaLIiec5aqi9Yf+58+6BevfpirCnfImebt6NeoEAzXjm67CpIC q9+niLb8iztIQ== To: help-guix From: phodina Cc: Maxim Cournoyer , Efraim Flashner Subject: Re: Specifying rust version Message-ID: In-Reply-To: <877cyc7vuu.fsf@gmail.com> References: <9HPT231QhmBHf-sXMAX0HcaUXokVCH-pKqntxd3QLQ4aH53EYk4soFhngqkdfsasYo-0g7JFk8zZhMInQgGwQBRsd19OWvc1y1PadBYTjlg=@protonmail.com> <877cyc7vuu.fsf@gmail.com> Feedback-ID: 14143818:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.133; envelope-from=phodina@protonmail.com; helo=mail-40133.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672156874; 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=uDU2DyPfiplqrvvS3A048A64C+J0hz7nwwT3+RGKWRg=; b=FTt0M/qJg/HNEyZ9APw7VwG3FBTxWGC3Uc0egvLpKQu5hv9s5UKmFal4vaW6PuOyR2jozi 2/24B4NXbYv4/qQdVXtHWO94sry+4GxsuqX4qJ3zhYFxqwYv31AAdHrgSHRAIFUflHs9UA H/gMHq46JqFYK0DB3tMndTt40X0z97Sz6xZdb+p5zuCbl7OQBjcQuQ7mJO++uK9S3yqJfC DlS/jeNzQtjcuM1adEjT07XNUuLNUks/bOcxT3tlebDhF6fbrPxUQUjBnIqaeTfC40lFjp QJ7oZPVqBEAg0Ws42XMm1Bn3PPcy9jRVOsy5OfCHQR5eJmRHKDWUncVv8cKSVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=DWRwWDOP; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=protonmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672156874; a=rsa-sha256; cv=none; b=KOf2ZyMpx7nVQcZ2Zv5e99BhMmmG+0wmJM+U7Xlh8qYOQC33lTMmiLsNrW18wD8N1Ws9ly C8qqQC0sqI9dvpkDvpPP1O7dEvCTEDuMTc3LpmDEir/P4XcNHSkO8Yoc1Aclcj83RfAqdk iWvcS7puxJs5PKt88lo+dZdaUFQeLb5R26X39GiHcR/UQVoaxKCG1zck44hSfe4UB7J93b gioCxA2BtAGw3xcl7wV811XYAigGEnObCn4XKCCSci0i3zwLGAsbsp/Rkq2fjTtkOejZeX ODOoAj0ibVCRszrg95d3xQJHaXSAy0AHzGU3KI1wBbX0egTnXlUyhzUsZtKjdA== X-Spam-Score: -4.66 X-Migadu-Queue-Id: 21C3913B28 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=DWRwWDOP; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=protonmail.com X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.66 X-TUID: tDX8041j5orK Hi, >> the documentation for 'cargo-build-system' [1] refers to parameter >> '#:rust' which allows user to specify the Rust compiler version. >> However, I've found this commit >> 9635119a61a9ab1b023558727fcdf1816fdc7fc6 from Maxim which makes all >> 'rust-.*' definitions private. Is there a way to specify newer Rust >> compiler? Something like 'rust-next'? The package requires version >> 1.62 but the current is 1.60. Also both version are already defined. >> What's missing is just way to select them. >>=20 >> [1] https://guix.gnu.org/manual/en/html_node/Build-Systems.html >>=20 > > I checked gnu/packages/rust.scm and it looks like the rust packages > aren't hidden but actually not exported. If they were just hidden then > you could still do `#:rust ,rust-1.62`. Since they're actually not > exported you need to use the not-really-supported `@@` to refer to that > variable, so you'd have to use something like: > #:rust ,(@@ (gnu packages rust) rust-1.62) Thanks Efraim, this is exactly what I've been looking for atm as temporary hack. > Given how it would be useful to have access to newer rust versions I > think it'd be worthwhile to make a post in guix-devel about making the > newer versions of rust use define-public but be hidden, so they can be > used as expected for the #:rust keyword. It would be definitely great to have access to the latest packaged version of rust. However, I understand this will trigger a lot of rebuilds. > > >=20 > > > the documentation for 'cargo-build-system' [1] refers to parameter > > > '#:rust' which allows user to specify the Rust compiler version. > > > However, I've found this commit > > > 9635119a61a9ab1b023558727fcdf1816fdc7fc6 from Maxim which makes all > > > 'rust-.*' definitions private. Is there a way to specify newer Rust > > > compiler? Something like 'rust-next'? The package requires version > > > 1.62 but the current is 1.60. Also both version are already defined. > > > What's missing is just way to select them. > > >=20 > > > [1] https://guix.gnu.org/manual/en/html_node/Build-Systems.html > >=20 > > I checked gnu/packages/rust.scm and it looks like the rust packages > > aren't hidden but actually not exported. If they were just hidden then > > you could still do `#:rust ,rust-1.62`. Since they're actually not > > exported you need to use the not-really-supported `@@` to refer to that > > variable, so you'd have to use something like: > > #:rust ,(@@ (gnu packages rust) rust-1.62) >=20 >=20 > Normally only the newest released Rust version is supported by upstream, > so what we should do is add a newer rust and use it by default. >=20 > The reasons previous rust versions are not exported is because they > aren't intended to be used by applications; they are built using > '--stage=3D1' to speed up compilation, which creates slower binaries and > may expose ABI stability problems (*if I remember the rust people's > explanation correctly). >=20 > When adding new version of rust, we move all the tests and final rust > version specifics to the leaf (last) rust version, and keep the > intermediary rusts minimal (no test, no tools, stage=3D1, etc.) >=20 > > Given how it would be useful to have access to newer rust versions I > > think it'd be worthwhile to make a post in guix-devel about making the > > newer versions of rust use define-public but be hidden, so they can be > > used as expected for the #:rust keyword. >=20 >=20 > It's typical that build system or services expose a way for the user to > use a variant of a package, but in the case of rust, I don't think it > should be advertised as a way to use different rust versions (given only > the last version is supported by upstream, e.g. sometimes fixing CVEs). I have to agree with you that this is just an anti-pattern and the #:rust should not be advertised. The best approach would be to add new rust version and switch to it. So do you think Maxim the `#:rust` parameter should be dropped and the documentation also removed? I guess same approach would apply for antioxidant-build-system, right? [1] 1 https://notabug.org/maximed/cargoless-rust-experiments ---- Petr