From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id RMTVNsbKm2W7kQAAkFu2QA (envelope-from ) for ; Mon, 08 Jan 2024 11:13:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EL1KLsbKm2VhkAAA62LTzQ (envelope-from ) for ; Mon, 08 Jan 2024 11:13:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704708806; 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: 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=Oh9y+KOnWXsnmqEJGcjE0hKkRkrW7eyFWinvms8uNC4=; b=p3QhDQldkoUyr8zP4l38ORNh0ewhBR7r5Bh1WHJV48ldabCgN9VYxNatla84dJvoJJj6aE 5aUr8t5O81ajPtp8O5O35m56ai6RyYdvZaltZaK1laF/R4rdzxgxpxVm9CK/Ewvto7fQYv OcTnCbTo4bmE3U7V68sEukEP1JDEh6+8BrwILe0zdPHJ3kt0JaRRYSuDehPqyz/sCrgRr8 88GLAjOHzd+nVolXFLz8KoytgV+IDRalSZMOjlqWL8FV5eGwqW5N+j9XRptpRH+eWgHaXD HmFs1szcfg14RmJIdlzrh0kzWKT/O+7qFe+zp3wWvFqBNKj9NaokAwMnduEI1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704708806; a=rsa-sha256; cv=none; b=Lhq9m8AExpeA4cZLN/alBS/JL9EyMSAYd59X0/is8h0u+ox3SzSAgck9unKo/ahiI4Cvar fKTmKP8MJhX41VuPbu5cBUjyAWdL80YzkiIleteSHVjc/JwwEvmy+KEYyVTTRNQTr4zbio 1g4RFuCUc5hNQheNzuaR1v7nncy1f71hZBjMIXFvdYlZa+juTbKB8VD4QIW4StHHKf0+0a Yi0G8YPGHiIInIcqupkiS5TpcM8B27qIFV9k7gCnc2EYlbkCM3FNyUIlwKfDxI00L9snv+ 5XH/AtxTJ/OPPxVKBf5d78jRZIgfWnmozZsdM59vjcoSD6Ufk2NzUG1Zezhoxg== 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 97AE13CC46 for ; Mon, 8 Jan 2024 11:13:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMmcn-0004bU-4C; Mon, 08 Jan 2024 05:12:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMmcl-0004ZM-Au for help-guix@gnu.org; Mon, 08 Jan 2024 05:12:51 -0500 Received: from tritonas.serveriai.lt ([194.135.87.87]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMmcj-0002Su-GF for help-guix@gnu.org; Mon, 08 Jan 2024 05:12:51 -0500 Received: from [88.119.78.42] (helo=thorfin) by tritonas.serveriai.lt with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rMmce-0008VF-8q; Mon, 08 Jan 2024 12:12:44 +0200 From: Ignas =?utf-8?Q?Lap=C4=97nas?= To: Wilko Meyer Cc: help-guix@gnu.org Subject: Re: proper way to resolve dependency version conflicts of rust crates? Date: Mon, 08 Jan 2024 12:02:29 +0200 References: <87v885axd0.fsf@wmeyer.eu> User-agent: mu4e 1.10.8; emacs 30.0.50 In-reply-to: <87v885axd0.fsf@wmeyer.eu> Message-ID: <87mstguo9v.fsf@lapenas.dev> MIME-Version: 1.0 X-Sender: ignas@lapenas.dev Received-SPF: pass client-ip=194.135.87.87; envelope-from=ignas@lapenas.dev; helo=tritonas.serveriai.lt X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.79 X-Spam-Score: -3.79 X-Migadu-Queue-Id: 97AE13CC46 X-TUID: NKBXlVvI21Qv Hi, > 1. Sent a patch to the upstream of the crate as well as to guix updating > all crate dependencies to most-recent. Sending a patch upstream updating package versions is probably desired by t= he guix rust-team, can=E2=80=99t actually answer that. Contributing is another= beast to tackle for me some time in the future. Best guess, guix-devel mailing list should provide an answer for that. > 2. Define a package variant of said dependency, let=E2=80=99s say foo-0.1= 3-1 for > v0.13.1 of foo. I doubt that this is necessary if the package in question follows semver ru= les. > 3. Substitute the required version in Cargo.toml of a affected crate to > match the package-version of said dependency we=E2=80=99ve packaged in = Guix. > > If I had to guess 3. would be the most appropriate way forward on this? I would go with option 3. Currently most packages I see drops the =E2=80=99=3D=E2=80=99 altogether in= favor of =E2=80=99^=E2=80=99. For example the rust-base64 package: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (define-public rust-base64-0.13 =E2=94=82 (package =E2=94=82 (inherit rust-base64-0.21) =E2=94=82 (name "rust-base64") =E2=94=82 (version "0.13.1") =E2=94=82 (source =E2=94=82 (origin =E2=94=82 (method url-fetch) =E2=94=82 (uri (crate-uri "base64" version)) =E2=94=82 (file-name =E2=94=82 (string-append name "-" version ".tar.gz")) =E2=94=82 (sha256 =E2=94=82 (base32 "1s494mqmzjb766fy1kqlccgfg2sdcjb6hzbvzqv2jw65fdi5= h6wy")) =E2=94=82 (modules '((guix build utils))) =E2=94=82 (snippet =E2=94=82 '(begin (substitute* "Cargo.toml" =E2=94=82 (("=3D0\\.3\\.2") "^0.3.2")))))) =E2=94=82 (arguments =E2=94=82 `(#:cargo-development-inputs =E2=94=82 (("rust-criterion" ,rust-criterion-0.3) =E2=94=82 ("rust-rand" ,rust-rand-0.6) =E2=94=82 ("rust-structopt" ,rust-structopt-0.3)))))) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Hope my blabering helps you mate. =E2=80=93=20 Best Regards, Ignas Lap=C4=97nas