From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 9n8QJ2itv1/2cwAA0tVLHw (envelope-from ) for ; Thu, 26 Nov 2020 13:28:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8EdaImitv1+ydgAA1q6Kng (envelope-from ) for ; Thu, 26 Nov 2020 13:28:08 +0000 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 294949403A2 for ; Thu, 26 Nov 2020 13:28:08 +0000 (UTC) Received: from localhost ([::1]:52472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiHJf-00031H-2W for larch@yhetil.org; Thu, 26 Nov 2020 08:28:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiHHe-0001tc-Li for guix-patches@gnu.org; Thu, 26 Nov 2020 08:26:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiHHe-0002OY-D6 for guix-patches@gnu.org; Thu, 26 Nov 2020 08:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiHHe-0000Q6-AH for guix-patches@gnu.org; Thu, 26 Nov 2020 08:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#42295] [PATCH] gnu: rust-1.44: Add rustfmt output. Resent-From: Matthew Kraai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Nov 2020 13:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42295 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: John Soo Cc: 42295@debbugs.gnu.org Received: via spool by 42295-submit@debbugs.gnu.org id=B42295.16063971591604 (code B ref 42295); Thu, 26 Nov 2020 13:26:02 +0000 Received: (at 42295) by debbugs.gnu.org; 26 Nov 2020 13:25:59 +0000 Received: from localhost ([127.0.0.1]:40168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiHHb-0000Po-7M for submit@debbugs.gnu.org; Thu, 26 Nov 2020 08:25:59 -0500 Received: from mail.ftbfs.org ([52.8.68.13]:26334 helo=aws.ftbfs.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiHHX-0000PY-Q4 for 42295@debbugs.gnu.org; Thu, 26 Nov 2020 08:25:58 -0500 Received: from ip68-5-94-190.oc.oc.cox.net ([68.5.94.190] helo=[192.168.1.12]) by aws.ftbfs.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kiHHR-0007N7-Km; Thu, 26 Nov 2020 13:25:50 +0000 References: <20200709123256.7690-1-kraai@ftbfs.org> <87blfltrxp.fsf@asu.edu> From: Matthew Kraai Message-ID: <5407eb2f-b499-2520-e0e5-48ca7171e6bd@ftbfs.org> Date: Thu, 26 Nov 2020 05:25:48 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.4.0 MIME-Version: 1.0 In-Reply-To: <87blfltrxp.fsf@asu.edu> Content-Type: multipart/mixed; boundary="------------58BC27B8DB1EFCBFE6D86764" Content-Language: en-US X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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: inc X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: YSb8TwR7DhYl This is a multi-part message in MIME format. --------------58BC27B8DB1EFCBFE6D86764 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi John, On 11/25/20 6:46 AM, John Soo wrote: > Hi Matthew, > > Thanks! I had packaged rustfmt-nightly but this is much better. > > Matthew Kraai writes: > >> + (replace 'check >> + (lambda* _ >> + ;; Enable parallel execution. >> + (let ((parallel-job-spec >> + (string-append "-j" (number->string >> + (min 4 >> + (parallel-job-count)))))) >> + (invoke "./x.py" parallel-job-spec "test" "-vv") >> + (invoke "./x.py" parallel-job-spec "test" >> + "src/tools/cargo") >> + (invoke "./x.py" parallel-job-spec "test" >> + "src/tools/rustfmt")))) > Nice! > >> + (outputs '("out" "doc" "cargo" "rustfmt")) > Perhaps we should make anything that can be installed as a rustup > component an output (provided the source is in the rust tree). I think > rls can be added immediately in the same fashion. Is rls deprecated in favor of rust-analyzer? > Do you want to add a copyright line? Done. > Otherwise, this looks good to me. According to https://github.com/rust-lang/rustfmt, rustfmt was made a component in 1.24.0.  Would it be better to add this support to the rust-1.24 package instead?  I've attached the patch I'm currently testing. -- Matthew Kraai --------------58BC27B8DB1EFCBFE6D86764 Content-Type: text/plain; charset=UTF-8; name="patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch" ZGlmZiAtLWdpdCBhL2dudS9wYWNrYWdlcy9ydXN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QEAgamVtYWxsb2MgPSBcIiIgamVtYWxsb2MgIi9s aWIvbGliamVtYWxsb2NfcGljLmEiICJcIgogICAgICAgICAgICAgICAgICAgIDs7IFRoaXMg dGVzdCBpcyBrbm93biB0byBmYWlsIG9uIGFhcmNoNjQgYW5kIHBvd2VycGM2NGxlOgogICAg ICAgICAgICAgICAgICAgIDs7IGh0dHBzOi8vZ2l0aHViLmNvbS9ydXN0LWxhbmcvcnVzdC9p c3N1ZXMvNDU0MTAKICAgICAgICAgICAgICAgICAgICAoKCJmbiB0ZXN0X2xvYWRpbmdfY29z aW5lIikgIiNbaWdub3JlXVxuZm4gdGVzdF9sb2FkaW5nX2Nvc2luZSIpKQotICAgICAgICAg ICAgICAgICAjdCkpKSkpKSkpKQorICAgICAgICAgICAgICAgICAjdCkpCisgICAgICAgICAg ICAgKGFkZC1hZnRlciAnY29uZmlndXJlICdlbmFibGUtZXh0ZW5kZWQtYnVpbGQKKyAgICAg ICAgICAgICAgIChsYW1iZGEqIF8KKyAgICAgICAgICAgICAgICAgKHN1YnN0aXR1dGUqICJj b25maWcudG9tbCIKKyAgICAgICAgICAgICAgICAgICAoKCJbW11idWlsZFtdXSIpICJbYnVp bGRdXG5leHRlbmRlZCA9IHRydWUiKSkKKyAgICAgICAgICAgICAgICAgI3QpKQorICAgICAg ICAgICAgIChyZXBsYWNlICdidWlsZAorICAgICAgICAgICAgICAgKGxhbWJkYSogXworICAg ICAgICAgICAgICAgICAoaW52b2tlICIuL3gucHkiICJidWlsZCIpCisgICAgICAgICAgICAg ICAgIChpbnZva2UgIi4veC5weSIgImJ1aWxkIiAic3JjL3Rvb2xzL2NhcmdvIikKKyAgICAg ICAgICAgICAgICAgKGludm9rZSAiLi94LnB5IiAiYnVpbGQiICJzcmMvdG9vbHMvcnVzdGZt dCIpKSkKKyAgICAgICAgICAgICAocmVwbGFjZSAnY2hlY2sKKyAgICAgICAgICAgICAgIChs YW1iZGEqIF8KKyAgICAgICAgICAgICAgICAgKGludm9rZSAiLi94LnB5IiAiLWoxIiAidGVz dCIgIi12diIpCisgICAgICAgICAgICAgICAgIChpbnZva2UgIi4veC5weSIgIi1qMSIgInRl c3QiICJzcmMvdG9vbHMvY2FyZ28iKQorICAgICAgICAgICAgICAgICAoaW52b2tlICIuL3gu cHkiICItajEiICJ0ZXN0IiAic3JjL3Rvb2xzL3J1c3RmbXQiKQorICAgICAgICAgICAgICAg ICAjdCkpCisgICAgICAgICAgICAgKHJlcGxhY2UgJ2luc3RhbGwKKyAgICAgICAgICAgICAg IChsYW1iZGEqICgjOmtleSBvdXRwdXRzICM6YWxsb3ctb3RoZXIta2V5cykKKyAgICAgICAg ICAgICAgICAgKGludm9rZSAiLi94LnB5IiAiaW5zdGFsbCIpCisgICAgICAgICAgICAgICAg IChzdWJzdGl0dXRlKiAiY29uZmlnLnRvbWwiCisgICAgICAgICAgICAgICAgICAgOzsgcmVw bGFjZSBwcmVmaXggdG8gc3BlY2lmaWMgb3V0cHV0CisgICAgICAgICAgICAgICAgICAgKCgi cHJlZml4ID0gXCJbXlwiXSpcIiIpCisgICAgICAgICAgICAgICAgICAgIChzdHJpbmctYXBw ZW5kICJwcmVmaXggPSBcIiIgKGFzc29jLXJlZiBvdXRwdXRzICJjYXJnbyIpICJcIiIpKSkK KyAgICAgICAgICAgICAgICAgKGludm9rZSAiLi94LnB5IiAiaW5zdGFsbCIgImNhcmdvIikK KyAgICAgICAgICAgICAgICAgKHN1YnN0aXR1dGUqICJjb25maWcudG9tbCIKKyAgICAgICAg ICAgICAgICAgICA7OyByZXBsYWNlIHByZWZpeCB0byBzcGVjaWZpYyBvdXRwdXQKKyAgICAg ICAgICAgICAgICAgICAoKCJwcmVmaXggPSBcIlteXCJdKlwiIikKKyAgICAgICAgICAgICAg ICAgICAgKHN0cmluZy1hcHBlbmQgInByZWZpeCA9IFwiIiAoYXNzb2MtcmVmIG91dHB1dHMg InJ1c3RmbXQiKSAiXCIiKSkpCisgICAgICAgICAgICAgICAgIChpbnZva2UgIi4veC5weSIg Imluc3RhbGwiICJydXN0Zm10IikpKSkpKSkpKSkKIAogOzs7IFJ1c3QgMS4yNSByZWxlYXNl IHN1cHBvcnQgd29yayB3aXRoIGxsdm0gNi0tYnV0IGJ1aWxkIHdpdGggbGx2bSA2IGlzCiA7 Ozsgbm90IGRldGVybWVuaXN0aWMgZHVlIHRvIDxodHRwczovL2dpdGh1Yi5jb20vcnVzdC1s YW5nL3J1c3QvaXNzdWVzLzUwNTU2Pi4KQEAgLTc2NCw2ICs3OTUsNyBAQCBqZW1hbGxvYyA9 IFwiIiBqZW1hbGxvYyAiL2xpYi9saWJqZW1hbGxvY19waWMuYSIgIlwiCiAgICAgICAgICAg YChtb2RpZnktcGhhc2VzICxwaGFzZXMKICAgICAgICAgICAgICA7OyBiaW5hcnllbiB3YXMg cmVwbGFjZWQgd2l0aCBMTEQgcHJvamVjdCBmcm9tIExMVk0KICAgICAgICAgICAgICAoZGVs ZXRlICdkb250LWJ1aWxkLW5hdGl2ZSkKKyAgICAgICAgICAgICAoZGVsZXRlICdlbmFibGUt ZXh0ZW5kZWQtYnVpbGQpCiAgICAgICAgICAgICAgKHJlcGxhY2UgJ2NoZWNrCiAgICAgICAg ICAgICAgICAobGFtYmRhKiBfCiAgICAgICAgICAgICAgICAgIDs7IEVuYWJsZSBwYXJhbGxl bCBleGVjdXRpb24uCkBAIC03NzMsNyArODA1LDkgQEAgamVtYWxsb2MgPSBcIiIgamVtYWxs b2MgIi9saWIvbGliamVtYWxsb2NfcGljLmEiICJcIgogICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAocGFyYWxsZWwtam9iLWNvdW50KSkpKSkp CiAgICAgICAgICAgICAgICAgICAgKGludm9rZSAiLi94LnB5IiBwYXJhbGxlbC1qb2Itc3Bl YyAidGVzdCIgIi12diIpCiAgICAgICAgICAgICAgICAgICAgKGludm9rZSAiLi94LnB5IiBw YXJhbGxlbC1qb2Itc3BlYyAidGVzdCIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICJz cmMvdG9vbHMvY2FyZ28iKSkpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgInNyYy90 b29scy9jYXJnbyIpCisgICAgICAgICAgICAgICAgICAgKGludm9rZSAiLi94LnB5IiBwYXJh bGxlbC1qb2Itc3BlYyAidGVzdCIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICJzcmMv dG9vbHMvcnVzdGZtdCIpKSkpCiAgICAgICAgICAgICAgKHJlcGxhY2UgJ3JlbW92ZS11bnN1 cHBvcnRlZC10ZXN0cwogICAgICAgICAgICAgICAgKGxhbWJkYSogXwogICAgICAgICAgICAg ICAgICA7OyBPdXIgbGQtd3JhcHBlciBjYW5ub3QgcHJvY2VzcyBub24tVVRGOCBieXRlcyBp biBMSUJSQVJZX1BBVEguCkBAIC04NDQsNiArODc4LDcgQEAgamVtYWxsb2MgPSBcIiIgamVt YWxsb2MgIi9saWIvbGliamVtYWxsb2NfcGljLmEiICJcIgogICAgICAgICAgICAgICAgICA7 OyBgcHJlZml4JyBkaXJlY3Rvcnkgc2hvdWxkIGV4aXN0IGJlZm9yZSBgaW5zdGFsbCcgY2Fs bAogICAgICAgICAgICAgICAgICAobWtkaXItcCAoYXNzb2MtcmVmIG91dHB1dHMgIm91dCIp KQogICAgICAgICAgICAgICAgICAobWtkaXItcCAoYXNzb2MtcmVmIG91dHB1dHMgImNhcmdv IikpCisgICAgICAgICAgICAgICAgIChta2Rpci1wIChhc3NvYy1yZWYgb3V0cHV0cyAicnVz dGZtdCIpKQogICAgICAgICAgICAgICAgICAjdCkpCiAgICAgICAgICAgICAgKGFkZC1hZnRl ciAncGF0Y2gtY2FyZ28tdGVzdHMgJ2Rpc2FibGUtdGhpbmx0by10ZXN0CiAgICAgICAgICAg ICAgICAobGFtYmRhKiBfCg== --------------58BC27B8DB1EFCBFE6D86764--