From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YC77DNFQBmM7EwEAbAwnHQ (envelope-from ) for ; Wed, 24 Aug 2022 18:24:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WF0qDNFQBmP2NwEAG6o9tA (envelope-from ) for ; Wed, 24 Aug 2022 18:24:49 +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 CCC472F65E for ; Wed, 24 Aug 2022 18:24:48 +0200 (CEST) Received: from localhost ([::1]:56666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQtBP-0008Ab-SS for larch@yhetil.org; Wed, 24 Aug 2022 12:24:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQtAh-00087j-9n for help-guix@gnu.org; Wed, 24 Aug 2022 12:24:03 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:49588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oQtAe-000099-Is for help-guix@gnu.org; Wed, 24 Aug 2022 12:24:02 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4MCWcn1XSdz9sRY; Wed, 24 Aug 2022 18:23:53 +0200 (CEST) Date: Wed, 24 Aug 2022 10:23:52 -0600 (MDT) From: Jonathan Scoresby To: "(" , help-guix@gnu.org Message-ID: <2099203680.635993.1661358232923@office.mailbox.org> In-Reply-To: References: Subject: Re: Rust Packaging without crates.io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal Received-SPF: pass client-ip=2001:67c:2050:0:465::201; envelope-from=me@jonscoresby.com; helo=mout-p-201.mailbox.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" 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=1661358288; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ipwHAoTWl46/nuSswvCVo/d1iXnbuL+0UD9aiqS8nBw=; b=IzcWKYnT9vWl5A5Q5D1yvEcyiYO9SxhDYwbZprJ5b/A2UHUiYk3wuqfdlcfNHEyWsQjQRO beWBjhCuUN9uOg9eSf15wVkcB9A4Yu+wpBK9WqPB6IgZrYOqwOwtUG3ZkkWLyjSJNI1NqE oafaH1JtIfKo4rLuBJwR/KJVqZsN63YFN65hDvHknfaJDMaMXG9t7WszgZZ6b2ofM83rve e7nxn96Hxu3bSli5EDrskyAgyH4+AtkyswN5UknattWdyY4kGQDxSU9PPgSQggyDz9gdeu 42qebQm2yaHDXWre8T5xcbB90aJw+RLJQ72gd49sHMV6Rxu2IUn9xTDYx3RY/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661358288; a=rsa-sha256; cv=none; b=cdJazs9RsheY5qzNDqZzKmcgF8kjgWGJfUZpqutV25q58ggB5vAp3P9gjjwdU2T+kQ24rP O0bj9fSA+Hus5T/NSfkYba0iOc4gr6NDIxnEdkJyBwrWkdAfxU58iQohOfs9z7TsADwhsT GFb3ck5ztZwRDdU6oCLssSzkTlABLg6PJLiMW5tTp42eO5xYX5tpReeZHTWfCo1XZTNjPi 7aG6hewlWFIZmtOppEyXBHXGNcsqIuFvkka4MbSiWv56/Fo5aMNJjL7XPLSPf+NvGqL0ik M2HdIbwxbT/3vi1Lzd77wYvj+WlV1mjDnhhksoNcHSndYygJhWN0hTkempsuBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.71 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CCC472F65E X-Spam-Score: -2.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5OCKX9oFBGfl > On 08/24/2022 10:06 MDT ( wrote: > > > Hi Jonathon, > > You can just write a normal package for a crate on Git, replacing the source with > something like: > > (origin > (method git-fetch) > (uri (git-reference > (url "...") > (commit (string-append "v" version)))) > (file-name (git-file-name name version)) > (sha256 > (base32 > "..."))) > > You can use a Rust package built like this in the same way as a normal crates.io > crate. Just add it to cargo-inputs or cargo-development-inputs as appropriate :) > > -- ( Thank you for the reply. This is what I have done. The problem I am having is that when I do this, cargo is not referencing it properly. The Cargo.toml file will have a line like: package = {git=url, rev=commit} I have successfully packaged the package it is referencing in the fashion you have shown and have provided it under cargo-inputs, but cargo is still trying to find the package at the git url. -Jonathan