From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:52224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h96Km-0001vt-1M for guix-patches@gnu.org; Wed, 27 Mar 2019 07:03:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h96Kk-0002vf-RJ for guix-patches@gnu.org; Wed, 27 Mar 2019 07:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h96Kk-0002vT-KT for guix-patches@gnu.org; Wed, 27 Mar 2019 07:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h96Kk-0006EQ-FC for guix-patches@gnu.org; Wed, 27 Mar 2019 07:03:02 -0400 Subject: [bug#34820] [PATCH] gnu: rust: Update to 1.32.0 Resent-Message-ID: Date: Wed, 27 Mar 2019 12:02:34 +0100 From: Danny Milosavljevic Message-ID: <20190327120234.355cc324@scratchpost.org> In-Reply-To: <87bm1x6n28.fsf@posteo.net> References: <9E833478-6D25-4549-B90A-8244CCED81DD@gmail.com> <9FA7C98C-EFF0-4A04-A628-AB4B907D438E@gmail.com> <20190319024719.7226c75f@scratchpost.org> <20190326142148.622a46ae@scratchpost.org> <1D8916FD-CC21-4AD0-9098-78339590F353@gmail.com> <20190326191427.12846e89@scratchpost.org> <50A5BA1C-E3B1-4875-BF0E-1B09D073A94E@gmail.com> <87h8bp6q5r.fsf@posteo.net> <91DE286A-2D30-4624-B8EF-3C7B973C1A47@gmail.com> <87bm1x6n28.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/8hO9akrjNDqIOX=SpU._uZf"; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Brett Gilio Cc: 34820@debbugs.gnu.org --Sig_/8hO9akrjNDqIOX=SpU._uZf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, On Tue, 26 Mar 2019 21:58:07 -0500 Brett Gilio wrote: > > Not sure what challenges there may be with the rustup approach though Without using the Guix package manager? That depends on whether they can install into $HOME. If so, it's not difficult. > > (will the prebuild binaries work well with guix?). We had prebuilt Rust binaries before, but we had to patch them slightly using patchelf. =46rom a strategic standpoint we'd like to reduce the number of bootstrap seeds required for Guix packages, not increase them. But I guess as long as they are optional (not dependencies of anything else), that's the user's choice. > You are probably right, there are definitely going to be some liability > issues about working with the nightly branch. But it was something I was > interested in investigating. The more we deal with rust on Guix, the > more I think that rustup is going to have to become a necessity if we > want to attract more Rust developers to using Guix. Nightly is almost a > requirement for a good few. I think Rust is one of the few languages getting it right in this regard: There is a "stable" setting where you can only access APIs in the runtime and/or language that won't change. If there are unfinished experimental APIs they can expose them (to programs not written to require the "stable" setting) and later on change them and tell everyone "I told you so". As a distribution, we usually package stable versions of software, so it does make sense that if the feature is unstable (subject to change in incompatible ways in less than, say, 1 month) then it's not available. Long story short, I don't use Rust for production projects because some important things are not deemed stable yet--and I had to do too much pointless rewriting in my life just because some other API changed. But there should be nothing stopping a user from testing Rust some other way (install into $HOME etc). In order to test Rust nightly I use a Docker container and this script: dannym@dayas ~/.local/bin$ cat in-rust-nightly=20 #!/bin/sh p=3D"`realpath \".\"`" # example: cargo build --release if [ "$1" =3D "" ] then set -- sh fi exec docker run --rm -e USER=3D"${USER}" --user "$(id -u)":"$(id -g)" -v "$= PWD":"${p}" -w "${p}" rustlang/rust:nightly "$@" --Sig_/8hO9akrjNDqIOX=SpU._uZf Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlybWEoACgkQ5xo1VCww uqU6GggAnN0I2oBM+brzX1qKpTSuh4hqQjfqcnAFxRVJyAOicAkbTMl0dkHbrvD3 xZQ4FjtS7NmclNyF8gZXyqYBI2aKwDhvxyDuOl5Y0w2WmSlpnHc+g2NXwthDQSNP gYZFGWwCO28quAAm9IFNGqjcYPJ0wdeA/dqk82VfyMkx2jFkV3AdYQmzkYg5CKWv jhZc/FzhClPCYwx6EDKKwWTJiAWha2LYnrQkWiQxJjcxeZeQXqvhYKyT2o5Pf0Vq WAJr3NtOXzn9JyOPM75iq+zIFutAR4wqIqVDdyIaSeGkjTYq71D45d9dli5/avzK Lfo2d3SfKq1wzXIqo1TZePwlE5htdA== =X9En -----END PGP SIGNATURE----- --Sig_/8hO9akrjNDqIOX=SpU._uZf--