From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iOWaH39buGM2EwAAbAwnHQ (envelope-from ) for ; Fri, 06 Jan 2023 18:33:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YHWSH39buGNnxgAA9RJhRA (envelope-from ) for ; Fri, 06 Jan 2023 18:33:51 +0100 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 C0B01B5F4 for ; Fri, 6 Jan 2023 18:33:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDqaW-0007sL-Az; Fri, 06 Jan 2023 12:33:04 -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 1pDqaU-0007rw-UO for guix-patches@gnu.org; Fri, 06 Jan 2023 12:33:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDqaU-0008No-MZ for guix-patches@gnu.org; Fri, 06 Jan 2023 12:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDqaU-0005rZ-76 for guix-patches@gnu.org; Fri, 06 Jan 2023 12:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60603] [PATCH] gnu: Add rust-uom Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Jan 2023 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60603 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60603@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167302634422479 (code B ref -1); Fri, 06 Jan 2023 17:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jan 2023 17:32:24 +0000 Received: from localhost ([127.0.0.1]:55753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDqZr-0005qU-WF for submit@debbugs.gnu.org; Fri, 06 Jan 2023 12:32:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:48136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDqZo-0005qM-TF for submit@debbugs.gnu.org; Fri, 06 Jan 2023 12:32:21 -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 1pDqZo-0007c9-ES for guix-patches@gnu.org; Fri, 06 Jan 2023 12:32:20 -0500 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDqZm-0007ms-4W for guix-patches@gnu.org; Fri, 06 Jan 2023 12:32:20 -0500 Received: by mail-lf1-x130.google.com with SMTP id cf42so2943284lfb.1 for ; Fri, 06 Jan 2023 09:32:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=rx5mM8vp1c8FRmPW6Bifcjo0FejjvLQk7q+0Jkw7z+s=; b=QwOTSkPsxFw+HoW6W+K/baR1OmI8nPTOFx0+vrsKyy/+wb5CcvgFwPQ+DyeIlYUetC 1687Xe5/JIRWvQXq+4WjcvIAesMERor0/50yx57mAGSB2lAG1cSTMBZTWEw47htpc68X i4TFnXfm9W+f2DciAytXD0TkUcdB3g0+pm4iR+5VDcAHM1/EuvBKANpwVH2vA/p4kbdW N89ZrhUOMrQg6nIn5YiAbCYwhzIfTSTRO005cuFvUvwJU+Rsv12AhrT8SzZN2cC5MCwT a81KCeOq9+FG564p5xVyPjb8nb++iRhag5BDQ185DPMbQgD/m71ADYwd4iEGoSg61rNx He1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rx5mM8vp1c8FRmPW6Bifcjo0FejjvLQk7q+0Jkw7z+s=; b=XO3ZsbpBYy4P8/zORjmn9oFYoOyhYmdzSqwiz//NdU3BuOxz7vLea6fj6UU/hmtFwk gk0LLneuDF/GRgbRIUwpezEoJuEukwGoQ2Qus80O4ezQtzRJV3JFIAZ+ioZILOmDE1VG HKOs0sLYMEv0QI22A9SFOiGTRHF1qhm2ga2myqxMO9xAz3KVGbUhR5qXqr/O/PKFdtbU b8M7310dEia6/sIVjEV+HtghlcY1K7TIei7gXsPtWrVMSLwfR+9pCSAziuWJFor0NUWA WRewP/rw5lEyhtOS0wBSjIKU0Xr0VY6XwKWLq6bAOxKx1Kb8SzTiOn2PZ2nJtAinw52y ONdA== X-Gm-Message-State: AFqh2kpy6o5bM3FC7B2k7hYfsSzNaNeVi/VgoMvHcEThZQVDjq7BlHtD jAzxuI4fEFsxOMBkEYi7glH/ypGXX4o= X-Google-Smtp-Source: AMrXdXsYThKWUmzte8EWU3h/jFmmB8caOQtaYsBf//dk83u4Z/UHthkiZJ7nEiUMuO2B9orrGk9wOQ== X-Received: by 2002:a05:6512:c10:b0:4cb:430d:2b98 with SMTP id z16-20020a0565120c1000b004cb430d2b98mr5972322lfu.11.1673026333769; Fri, 06 Jan 2023 09:32:13 -0800 (PST) Received: from elephant ([95.79.5.207]) by smtp.gmail.com with ESMTPSA id bt5-20020a056512260500b00497ab34bf5asm222596lfb.20.2023.01.06.09.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 09:32:12 -0800 (PST) From: "Artyom V. Poptsov" Date: Fri, 06 Jan 2023 20:32:08 +0300 Message-ID: <878rifbmcn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=poptsov.artyom@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_CSS_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673026430; a=rsa-sha256; cv=none; b=KKf4XBXhuwYVURaOya2flB1l2eSwFdpMAsV9bdWEa1b0a6dv0llJ3b8peZOoMx2O9YTnjH XknaMPILutKBC6taSxJblldoK2rPp8cwTrHTYAk/INh21/8OlOcdTKr3ip1lan0viUeLP7 6GEgW7uogbA+QSJEwri+5wci16r7bi4r6WctHr78khFLeVcI8Aa9SjfD3BB/k3r1vWYawO y2hnXjLpZ3u9SYyvxyf7AUPodWJJnM1ZT5Qr/dK/iznyCOA6NhbsN/SygLP92CX4mfS3JZ GkIn73OSKKt8phjg1PAGw/1HpCnqtr/awtFmmKZZ+o9fprH2HSecsvBW0TDRvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QwOTSkPs; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673026430; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=rx5mM8vp1c8FRmPW6Bifcjo0FejjvLQk7q+0Jkw7z+s=; b=eGLUMXVXf0WwPv73NhaU7pX5D9WOEDai/jFaNXge5wYD1wF+q9HA4hAfgf38lc9ytW73vv qax0akgau+p3lD7ivirbcer6xcQ+TJI6Er3eNhGEqcQw6lI3Wuv5lDLO+joKNp1aaLPaJs 3AVP61w+yqcNbDCY1NVN5L/jBm3HkwITcvXwniAHA0eRb1UIbUWqJPsHHQuGxmLa8Q3UOD bD3Fb2IUV7sQQGWWRe5xH8PY4DjBE3+AiQoCVZKTwT/Ut/zpbpcPHrGZtWo5yyClsp6yXd 9xkJKBAqvaB7aAzI6DUhAMLKZvTlL1GIpKuXatgSw/LxDbYFJtDHqU9fSh4MJw== X-Spam-Score: -4.26 X-Migadu-Queue-Id: C0B01B5F4 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QwOTSkPs; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.26 X-TUID: 4QOFpdLYwbjc --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, this patch series adds "uom"[1] Rust package. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-Add-rust-typenum-1.13.0.patch Content-Transfer-Encoding: quoted-printable From=20401ac46ff0c2dfda04d00240329d7f4a55accef3 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Fri, 6 Jan 2023 19:40:40 +0300 Subject: [PATCH 1/2] gnu: Add rust-typenum-1.13.0. * gnu/packages/crates-io.scm (rust-typenum-1.13.0): New variable. =2D-- gnu/packages/crates-io.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f0f40207b9..ea20401c65 100644 =2D-- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -63709,6 +63709,20 @@ (define-public rust-typenum-1 (license (list license:asl2.0 license:expat)))) =20 +(define-public rust-typenum-1.13.0 + (package + (inherit rust-typenum-1) + (name "rust-typenum") + (version "1.13.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "typenum" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "01lbbspn4080yg8wp6y7q3xcqih1c1dmkkx4pwax4z1a9436k7w7")))))) + (define-public rust-ucd-parse-0.1 (package (name "rust-ucd-parse") =2D-=20 2.34.1 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0002-gnu-Add-rust-uom-0.33.0-and-rust-uom-0.30.0.patch Content-Transfer-Encoding: quoted-printable From=201a5c0e5f0af8b4de981b2f174634dbcabe0f77c5 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Fri, 6 Jan 2023 19:43:20 +0300 Subject: [PATCH 2/2] gnu: Add rust-uom-0.33.0 and rust-uom-0.30.0. * gnu/packages/crates-io.scm (rust-uom-0.33.0, rust-uom-0.30.0): New variables. =2D-- gnu/packages/crates-io.scm | 58 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ea20401c65..13f50b9155 100644 =2D-- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -13023,6 +13023,64 @@ (define-public rust-cpuprofiler-0.0 (description "This package provides bindings to Google's cpu profiler.= ") (license license:bsd-2))) =20 +(define-public rust-uom-0.33.0 + (package + (name "rust-uom") + (version "0.33.0") + (source (origin + (method url-fetch) + (uri (crate-uri "uom" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0385hbx8i15izs9ss0cvwv6kdf4mqbfcbzhfxxn0mkyspzh8zrjk")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-num-complex" ,rust-num-complex-0.4) + ("rust-num-rational" ,rust-num-rational-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-typenum" ,rust-typenum-1.13.0) + ("rust-serde" ,rust-serde-1) + ("rust-num-bigint" ,rust-num-bigint-0.4)) + #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5) + ("rust-quickcheck" ,rust-quickcheck-0.8) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-static-assertions" ,rust-static-= assertions-1)))) + (home-page "https://github.com/iliekturtles/uom") + (synopsis "Units of measurement") + (description + "@code{uom} (Units of measurement) is a crate that does automatic typ= e-safe +zero-cost dimensional analysis. You can create your own systems or use th= e pre-built +International System of Units (SI) which is based on the International Sys= tem of +Quantities (ISQ) and includes numerous quantities (length, mass, time, ...= ) with +conversion factors for even more numerous measurement units (meter, kilome= ter, foot, +mile, ...).") + (license (list license:expat license:asl2.0)))) + +(define-public rust-uom-0.30.0 + (package + (inherit rust-uom-0.33.0) + (name "rust-uom") + (version "0.30.0") + (source (origin + (method url-fetch) + (uri (crate-uri "uom" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1vg59hnb7hh0p8kjjhgmrsnn3597722lkfdkp481wksq6vk06rg7")))) + (arguments + `(#:cargo-inputs (("rust-num-complex" ,rust-num-complex-0.4) + ("rust-num-rational" ,rust-num-rational-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-typenum" ,rust-typenum-1) + ("rust-serde" ,rust-serde-1) + ("rust-num-bigint" ,rust-num-bigint-0.4)) + #:cargo-development-inputs (("rust-approx" ,rust-approx-0.3) + ("rust-quickcheck" ,rust-quickcheck-0.8) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-static-assertions" ,rust-static-= assertions-1)))))) + (define-public rust-crates-index-0.18 (package (name "rust-crates-index") =2D-=20 2.34.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable The "uom" package is used by the number of other Rust packages, namely "heim-common"[2] which I'm planning to try to package later. Thanks, =2D avp References: 1. https://crates.io/crates/uom 2. https://crates.io/crates/heim-common =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmO4WxgZHHBvcHRzb3Yu YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigL9cGB/0YX0pSjfRlWQKqFJsDiqXt uCO8bfEkJkfjdEIfHa0FamkvPl2X4ZLFzzn4Mz8TnjrA9RO2Zn4uHhnpMxMYtofb i1dTklYgMc0LC6pihrI6NySmOo0XdAMLM4hoifL51TkiwAuiK8yRYKVKkqltiyAw eJ26KxPDmK8nkQSMNUlj91DUBX3rKez7Y5KTVgkJa75JrLt6zFKYmQsYDoSnvoGQ EK4ALpA9c2U2fupQxLwjVcQGCHeIed7m/VhXWVSYjF6WXkW6ClCNmWNNmqBWFeC9 vVkNKpVvP0uys/CNtz0duUEVnjQTy1b+fmQL5tgme9qREu7hujtWr0cWcNPsOsvf =0hRY -----END PGP SIGNATURE----- --==-=-=--