From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 28 07:06:39 2016 Received: (at 25281) by debbugs.gnu.org; 28 Dec 2016 12:06:40 +0000 Received: from localhost ([127.0.0.1]:57623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMD0B-0002DT-N4 for submit@debbugs.gnu.org; Wed, 28 Dec 2016 07:06:39 -0500 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:43222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMD09-0002DI-3N for 25281@debbugs.gnu.org; Wed, 28 Dec 2016 07:06:37 -0500 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id A6585380545; Wed, 28 Dec 2016 13:06:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :user-agent:references:received:received:received; s=mdc; t= 1482926790; x=1484741191; bh=hnbgS0QVuk56cyoFWfB6Y+wtrsvf+zT6I9F qmCqlP8M=; b=l6Pu2ntPgct67q3PzwjgJU9Y88ARXX43wb8ENOP28gZwwPaa02m cSmSoVi0NelLHm3kxdhUjeoOLQGS3+uEzwwy0YWx6yzZH1mO1do4AaNXtvnsUsdB HWbG7Vgi26QZ0cZh6SdA0TcTsbVoSWd8ka+YjfQsq44DxFv/aOPvMbJ8= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T0xAbipMjZnk; Wed, 28 Dec 2016 13:06:30 +0100 (CET) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS; Wed, 28 Dec 2016 13:06:30 +0100 (CET) Received: from localhost (141.80.180.135) by HTCATWO.mdc-berlin.net (141.80.180.125) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 28 Dec 2016 13:06:29 +0100 References: <87zijhuzcv.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> User-agent: mu4e 0.9.16; emacs 25.1.1 From: Ricardo Wurmus To: David Craven Subject: Re: bug#25281: rust importer duplicates input In-Reply-To: Date: Wed, 28 Dec 2016 13:06:28 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.180.135] X-TM-AS-Product-Ver: SMEX-11.0.0.4283-8.000.1202-22764.006 X-TM-AS-Result: No--1.285600-0.000000-31 X-TM-AS-MatchedID: 150567-390468-703731-139010-702187-706762-708058-700648-7 03786-706065-702358-703788-709584-709185-704496-701604-704341-705861-707410 -703782-148004-148133-20043-42000-42003 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-Spam-Score: -8.1 (--------) X-Debbugs-Envelope-To: 25281 Cc: ng0 , 25281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.1 (--------) David Craven writes: > Looking at the Cargo.toml file we see this: > > [target."cfg(unix)".dependencies] > libc = "0.2.14" > # Compat with older Cargo versions temporarily > [target.x86_64-unknown-linux-gnu.dependencies] > libc = "0.2.14" > [target.i686-unknown-linux-gnu.dependencies] > libc = "0.2.14" > [target.x86_64-apple-darwin.dependencies] > libc = "0.2.14" > [target.i686-apple-darwin.dependencies] > libc = "0.2.14" > > I started reimplementing cargos dependency resolution algorithm, but > think now that it's better to use a Cargo.lock file when one is > provided. > > When there isn't a cargo lock file it's a library in the sense that it > is a collection of source code that can be reused in a cargo project > that has a Cargo.lock file. > > I don't think that this is a issue that needs fixing. Could the importer be changed to either ignore targets that don’t match the current architecture or to uniquify the list of inputs? ~~ Ricardo