unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: phodina <phodina@protonmail.com>
Cc: help-guix <help-guix@gnu.org>,
	Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: Re: Specifying rust version
Date: Tue, 27 Dec 2022 08:53:01 +0200	[thread overview]
Message-ID: <Y6qWTbpDf/xY31UR@3900XT> (raw)
In-Reply-To: <DU5DmPh22bC-vKOvf2SArRg1pwTtPNBReJwvQzmN8pXiPvzrfW0f0fO4jL9_pVCKgqL-6VW0ZFOu8RCYZIFFe4-D9g0vM8u01YHIbAMqIjs=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]

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)

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.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-12-27  6:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9HPT231QhmBHf-sXMAX0HcaUXokVCH-pKqntxd3QLQ4aH53EYk4soFhngqkdfsasYo-0g7JFk8zZhMInQgGwQBRsd19OWvc1y1PadBYTjlg=@protonmail.com>
2022-12-26  9:00 ` Specifying rust version phodina via
2022-12-27  6:53   ` Efraim Flashner [this message]
2022-12-27 14:40     ` Maxim Cournoyer
2022-12-27 16:00       ` phodina
2022-12-27 17:34         ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y6qWTbpDf/xY31UR@3900XT \
    --to=efraim@flashner.co.il \
    --cc=help-guix@gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    --cc=phodina@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).