From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OPplDUKBv2I0KwAAbAwnHQ (envelope-from ) for ; Sat, 02 Jul 2022 01:20:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ADYmDUKBv2J3cwEAauVa8A (envelope-from ) for ; Sat, 02 Jul 2022 01:20:34 +0200 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 B329FBA89 for ; Sat, 2 Jul 2022 01:20:33 +0200 (CEST) Received: from localhost ([::1]:38500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7Pw7-000753-T0 for larch@yhetil.org; Fri, 01 Jul 2022 19:20:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7Pvf-00073x-7P for guix-patches@gnu.org; Fri, 01 Jul 2022 19:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45445) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7Pve-0000Ax-ML for guix-patches@gnu.org; Fri, 01 Jul 2022 19:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7Pve-000299-Hm for guix-patches@gnu.org; Fri, 01 Jul 2022 19:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54509] bump: make rust-cargo understand rust-edition2021 which rustc already does Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Jul 2022 23:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54509 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos Cc: 54509@debbugs.gnu.org Received: via spool by 54509-submit@debbugs.gnu.org id=B54509.16567175738208 (code B ref 54509); Fri, 01 Jul 2022 23:20:02 +0000 Received: (at 54509) by debbugs.gnu.org; 1 Jul 2022 23:19:33 +0000 Received: from localhost ([127.0.0.1]:39342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7PvB-00028K-Dt for submit@debbugs.gnu.org; Fri, 01 Jul 2022 19:19:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]:38173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7Pv8-000285-9r for 54509@debbugs.gnu.org; Fri, 01 Jul 2022 19:19:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1EC09240026 for <54509@debbugs.gnu.org>; Sat, 2 Jul 2022 01:19:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1656717564; bh=qwYDDr3JTGMmH29YRpjV+yqxNUanucgX8PLGVx91ucs=; h=From:To:Cc:Subject:Date:From; b=Ju7OelmVODrtRDj59ESfAMANKmoqG9733OZXe3iCgclwA0rslx34QVJUozCqgMQT3 g9jMyywDwW4iR5nqYOHdlyEEaZQJUd3deLKfl2/BXaUtmXqEHpRYJX0b53DX9ml2bQ oCNW8Bb0KCHJBw7NJGktRoy2Q+SUmOD55Ush3uf5qWByvSxxujYogUy9/LJzmj46/R 86zqrL7NnPLsA/Y9kN2kRC25/aUm6J1vq4ph9HnMT7UnrLLlXNuVfu6/wmBAIvPjSO /194cJt3Sb0GKLTe3kfE6StLzZqAHvOp+49pB2e+7C2x6mXW3h6J9BSPwoMgvb78AU 6umKo7H3scJig== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LZWP653fBz9rxG; Sat, 2 Jul 2022 01:19:22 +0200 (CEST) References: <87bkub5b4l.fsf@posteo.de> From: Mekeor Melire Date: Fri, 01 Jul 2022 21:48:43 +0000 In-reply-to: Message-ID: <87sfnk4e3j.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656717633; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=MV8Kfm4UJySfeAnhpiJdBk8QMy0hba7rLFFcLeJbVa8=; b=WNv4imz4JvRxqQ50i00zsZlohbvgbodr8jL85ijr7uSQv/8bRVND3B6yuekw/bc4bW9O4s 3t3M4uYiaDVrSkuZJMGFni5iABt6c8MV8giHSDVrOLXQbHckayQsC7fCvGC6q2E3gDCmqf 2k8ZIYa8Y8iCeApV+gZ4UBV80bPdg3SkvLyolHXSdsOEkaez+fkCdKm5KwtsdBkZTKW7uZ rdLiz8kUk2B17gfF3yvzOd9aKuCkajD3LS89NM5tb+rYYaHEywD/xabCSCTmsE8S+e7Q7q K1fTZx+3X6EmPau2p9ACgZpvAKl1Dhy54z8RpqAiQMY+x2vkPGIsWtwrHOuZZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656717633; a=rsa-sha256; cv=none; b=chPj17ofkyhO9Lq9uRl6tWYbF/iyTNKnqXvoB/Ii5ifiq4nvIjheardlECruoNs2LnWyGL /RVWuBWq1rybk5k1DDTs6Ov3RmYIev5HVb5CRJIku8I86eI2gw/a5abA6GXmtIl7tS/1qg YcJM7Y/wGGPv76RiwbhfvxDUfI/YGxWv5IcKVYjWSYj/BywnfcEnjJnWNtTT9wHnkVOlv9 oj3E70jLYFryMmDpgvWYdqgIkpnmw+G4SIgxxswkM0n1JtGagLnMxU9zQBZIZe9OsRglB3 oo3Iplbb/2+a9dnMsLFzNkUS7zBMSjQ0higdihdVrLp3DkqKc1qW+n2a5K+Rew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.de header.s=2017 header.b=Ju7OelmV; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.de header.s=2017 header.b=Ju7OelmV; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B329FBA89 X-Spam-Score: 6.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: V2YH4sxVIma1 2022-06-30 / 10:10 / maximedevos@telenet.be: > Mekeor Melire schreef op wo 29-06-2022 om 22:57 [+0000]: > > the rust-compiler which is packaged for guix supports edition2021 > > but the cargo version packaged for guix does not > > Pretty sure that it does, IIRC under antioxidant-build-system I've seen > some things being compiled with the 2021 edition of rust, presumably > they also compiled under cargo-build-system. i tested this again. i'll describe the issue with some instructions: create a cargo project: $ cargo new foo $ cd foo use edition 2021 instead of 2018: $ sed -i 's/2018/2021/' Cargo.toml attempt to build and run. you'll observe an error: $ cargo run > error: failed to parse manifest at `/home/user/foo/Cargo.toml` > Caused by: > feature `edition2021` is required > consider adding `cargo-features = ["edition2021"]` to the manifest specify the 2021-edition as a cargo-feature, as suggested by cargo. and try building and running again. it'll work fine: $ (echo 'cargo-features = ["edition2021"]' && cat Cargo.toml) | \ sponge Cargo.toml $ cargo run > [...] > Hello world! but now, let's add a package as dependency - a package which uses edition2021. and then, try to build and run: $ echo 'axum = "0.5.4"' >> Cargo.toml $ cargo run > error: failed to download `axum-core v0.2.6` > Caused by: > unable to get packages from source > Caused by: > failed to parse manifest at > `/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.2.6/Cargo.toml` > Caused by: > feature `edition2021` is required > consider adding `cargo-features = ["edition2021"]` to the manifest TLDR: you can't build projects which depend on packages which depend on edition2021. > Also, rust-cargo does not have the cargo binary (but a cargo library!), > you may be looking for the 'cargo' output of the 'rust' package > instead. > > Greetings, > Maxime.