From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: bug#40894: import crate: Use proper variable names Date: Mon, 27 Apr 2020 09:21:22 +0200 Message-ID: <528c0718-97ec-2b03-227f-282178dc1ae2@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37832) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSy5a-0003mV-MS for bug-guix@gnu.org; Mon, 27 Apr 2020 03:22:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSy5a-0006fc-7Z for bug-guix@gnu.org; Mon, 27 Apr 2020 03:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSy5Z-0006fX-Rw for bug-guix@gnu.org; Mon, 27 Apr 2020 03:22:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSy5Z-0006wH-Nb for bug-guix@gnu.org; Mon, 27 Apr 2020 03:22:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:37760) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSy56-00038q-KY for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSy54-0005qR-Oj for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:32 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:46138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSy54-0005kM-4D for bug-guix@gnu.org; Mon, 27 Apr 2020 03:21:30 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 499bml37sWz1s2Bv for ; Mon, 27 Apr 2020 09:21:27 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 499bml2HLGz1qrjk for ; Mon, 27 Apr 2020 09:21:27 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id MpUpY2mKd4RY for ; Mon, 27 Apr 2020 09:21:24 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-55-44.dynamic.mnet-online.de [188.174.55.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 27 Apr 2020 09:21:24 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id 6B833600B0 for ; Mon, 27 Apr 2020 09:21:53 +0200 (CEST) Content-Language: en-US List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40894@debbugs.gnu.org "import crate -r" shall create and use "proper" variable names for the package definitions it prints out and for the packages it reference. If guix commits to use variable names follow the Cargo book (see ), the importer shall create respective variables and use these names. This would easy importing packages a lot. Dummy example: $guix import crate -r h2@0.2.4 … (define-public rust-h2 …     (arguments       `(#:cargo-inputs         (("rust-bytes" ,rust-bytes)          ("rust-fnv" ,rust-fnv) Shall become $guix import crate -r h2@0.2.4 … (define-public rust-h2-0.2 …         (("rust-bytes" ,rust-bytes-0.4)          ("rust-fnv" ,rust-fnv-1) -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |