From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sPDDBBwEq2Np9wAAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 15:41:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CNvmAxwEq2Mt8gAAG6o9tA (envelope-from ) for ; Tue, 27 Dec 2022 15:41:32 +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 91AB632C36 for ; Tue, 27 Dec 2022 15:41:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAB8a-0000nF-Lo; Tue, 27 Dec 2022 09:41:04 -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 1pAB8Y-0000mC-2F for help-guix@gnu.org; Tue, 27 Dec 2022 09:41:02 -0500 Received: from mail-vk1-xa2c.google.com ([2607:f8b0:4864:20::a2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pAB8W-0003UY-BO for help-guix@gnu.org; Tue, 27 Dec 2022 09:41:01 -0500 Received: by mail-vk1-xa2c.google.com with SMTP id t4so4894576vkt.7 for ; Tue, 27 Dec 2022 06:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=aDo/4UhU8cmERjce6St8p18no0WcCOKzv6lgafOPBUE=; b=HvcYDWfGJII74BCA5eoIdsaaqkYk6I5ONRr8X4lFLsxolgZcJ+gDjuxJKFADBahWkz Xppd3pVcWpyJqZpUmJ/j3YrsyhgDiOKQlJSOZrSJO+hukEMFYvIJ+H9MKFyfmi7Q0M2r PUJispJadaTeGoBocaXNYTkhrZWxBfFTieUGTDMWzmdgnJOpFY6GRLz6pE8V5kyk9g0r AG3PuliOZ/ZZb0RtkN/VRku14vYWsD3+iDYL/jROjUuFpxlGQFx7Pu1hQ/7y8gVV2SJO sWKHCd9GhduVpMa0g8VABVFXVMnLeQ2g2rMwUxZzlJ9jagOQ0B1Nhboty/Fgn8u0Grae imOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aDo/4UhU8cmERjce6St8p18no0WcCOKzv6lgafOPBUE=; b=5ZS80fF610g6gVrpqPUcCLrVk4F1jbT1vejSx/TZowppdf5eNLkAl5+wD+xvtMqtPr AdiPjqtqFp5k7WCTzwbPwHnbw76VgUh2RF+NrWiOO9MqY88WxTAXPOlUXsl+usBbxlK0 /HHwYQRmVxOlR+LCbNPchBL4twT7/BF4h98o9C9NhbjVWUkfN5wcX9zbQ2zVzoL+5AiZ hX0NPT1D99TkQt4W86zcMcsOb1c45zLGQKwn6fEMDAT0GWX3xQjGv2u4WVaU8XVb0jSd szxTu0xdqpiHn9t6KEtCIAnsSSReEdXWNOyhCakaDHk3uDlhoXiOSoPbIqmd0tQ8lGbg Bsgw== X-Gm-Message-State: AFqh2kqfQ4Rxxlf3Jc2e8ZnAFE1TnZooB0BGzNKvcC3tLfu7q5Ezmp8I P1jgzkcY+cdPvHWLMQABKzfRDoRVR/jmqw== X-Google-Smtp-Source: AMrXdXtx+pMOhJUmDAX50AViVwBNkJqVRGv+cwa8BMfs7Yj0DCVwwc+wGQckCbTS+GUeMqgKecHiRw== X-Received: by 2002:a1f:a90e:0:b0:3d5:475f:94c with SMTP id s14-20020a1fa90e000000b003d5475f094cmr4334807vke.14.1672152058741; Tue, 27 Dec 2022 06:40:58 -0800 (PST) Received: from hurd (dsl-10-129-132.b2b2c.ca. [72.10.129.132]) by smtp.gmail.com with ESMTPSA id pj39-20020a05620a1da700b006fa22f0494bsm9347269qkn.117.2022.12.27.06.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 06:40:58 -0800 (PST) From: Maxim Cournoyer To: phodina Cc: help-guix Subject: Re: Specifying rust version References: <9HPT231QhmBHf-sXMAX0HcaUXokVCH-pKqntxd3QLQ4aH53EYk4soFhngqkdfsasYo-0g7JFk8zZhMInQgGwQBRsd19OWvc1y1PadBYTjlg=@protonmail.com> Date: Tue, 27 Dec 2022 09:40:57 -0500 In-Reply-To: (Efraim Flashner's message of "Tue, 27 Dec 2022 08:53:01 +0200") Message-ID: <877cyc7vuu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::a2c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-vk1-xa2c.google.com 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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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-Seal: i=1; s=key1; d=yhetil.org; t=1672152091; a=rsa-sha256; cv=none; b=B9kFUDtzh0PmMMPi+SJH9GcovmtyxUAqUcNz0B/b9fvoQq6BAcG8uMT417evGAK8OM1q9w RFYarDh94Fra/jFuiwPk8AqFHF81z1FRDXNRHuAz+auqL2xBbQ1MWKohwYMvX3u5cNlFri 7qZ4ZPSzPnGk4MldFr1zb1kHL+7MVIY24le2eGyjdCK7aDX+A61XVzUXnBk+5PnSS0wSIK OMuMVtiAOwNYeE20OPNVUfLTMttjH+K6czCJTNJUcX7Ek/XMzAcait0+UhYAodWTVEMbiN ldLEDQRru6lvPvVuyyV2oslXRzlUnGw+GSeliB+E42gJEFfE/cUdtvkwRNBgIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HvcYDWfG; 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=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672152091; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aDo/4UhU8cmERjce6St8p18no0WcCOKzv6lgafOPBUE=; b=PDgjEj640GOHJK4RlYvBvtsRRvf5QOE/9G8/xc3VZ0oeipVKuCM9tLBNLQ+Hn1wgKPVltv CboWq1geGL7oZ2zURtyV8e6Orcq+TscR4nnx2826SlXsYkGxAj8bE4H+H5UGB8ZqJ/DUCl mxOcTHbSchO9fwg6tBx7PUvqArk2zEMC7+gEUsbJD9QyFjzCx4sHT41N4NwaCpKoNJICv4 Uu2X2py8ZumF183a2mCbAsKSJP9O4HhaKuDPZkT2DxRXtNPXIHiE+b1THcAkZ0VWPSuKS0 WwUH3r06RwFY4Z0GfRdZAfeF1FmptkL2aFNIM2cLupE7wDMdLA5Mcm2XMvaVGQ== X-Spam-Score: -6.90 X-Migadu-Queue-Id: 91AB632C36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HvcYDWfG; 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=none) header.from=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.90 X-TUID: hhPUza2MEM8E Hello, Efraim Flashner writes: > On Mon, Dec 26, 2022 at 09:00:40AM +0000, phodina wrote: >> 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. >> >> [1] https://guix.gnu.org/manual/en/html_node/Build-Systems.html >> > > 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) 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. The reasons previous rust versions are not exported is because they aren't intended to be used by applications; they are built using '--stage=1' to speed up compilation, which creates slower binaries and may expose ABI stability problems (*if I remember the rust people's explanation correctly). 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=1, etc.) > 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'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). -- Thanks, Maxim