From patchwork Sat Jan 20 23:30:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaeme Sifat X-Patchwork-Id: 59256 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9BC1F27BBE9; Sat, 20 Jan 2024 23:32:54 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4021727BBE2 for ; Sat, 20 Jan 2024 23:32:53 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRKol-0007Ms-Me; Sat, 20 Jan 2024 18:32:03 -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 1rRKoh-0007LP-UD for guix-patches@gnu.org; Sat, 20 Jan 2024 18:31:59 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRKoh-0006Z7-La for guix-patches@gnu.org; Sat, 20 Jan 2024 18:31:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rRKok-0006LV-Nb; Sat, 20 Jan 2024 18:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68623] [PATCH 2/6] gnu: Add rust-spin-sleep-1. Resent-From: Jaeme Sifat Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 23:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68623 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68623@debbugs.gnu.org Cc: Jaeme Sifat , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 68623-submit@debbugs.gnu.org id=B68623.170579350324321 (code B ref 68623); Sat, 20 Jan 2024 23:32:02 +0000 Received: (at 68623) by debbugs.gnu.org; 20 Jan 2024 23:31:43 +0000 Received: from localhost ([127.0.0.1]:36119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRKoQ-0006K3-VO for submit@debbugs.gnu.org; Sat, 20 Jan 2024 18:31:43 -0500 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:49732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRKoN-0006JP-PB for 68623@debbugs.gnu.org; Sat, 20 Jan 2024 18:31:40 -0500 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rRKoE-009Q9F-NB for 68623@debbugs.gnu.org; Sun, 21 Jan 2024 00:31:30 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector1; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To :Message-ID:Date:Subject:Cc:To:From; bh=XH9rjVccfR9MJguGXjHGkNlNdMwRzLd1sMjMdNyvdv4=; b=sUJx5ZqY5SaXQeFJq0BCcDkZJL CQXtAAcGSazzuYKoYuYACgSOnT7f6Dwc0NKB/7XWXPsOidtROpg99m37Xac+Xlcnwxxgt1kC8Wft9 qlJSe8n9/VoREsh8AAuwkI03/zjD0sn+lohSQd5tHUHlqmiyR72gjHur/+PRaWTztpj59eXY1KhE9 hH7vMElLGP/QF7xcOJhrTPL6jzKKQgusnyH8eOkD3VRjuNbso5Rnh2sIvcYeEwTnVcRxOt0SuaOVF BR5hN+s73cApSr3mfmrJJK+FTRWHCTctE6Khk+ILzaIGkFQRBc6o973HTzV7i2/iRaFMrSO6FB9MB ndCYj/bA==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rRKoE-0003a0-EN for 68623@debbugs.gnu.org; Sun, 21 Jan 2024 00:31:30 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (1176697)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rRKnu-008qt9-1r; Sun, 21 Jan 2024 00:31:10 +0100 Date: Sat, 20 Jan 2024 18:30:21 -0500 Message-ID: <4c2a6f7ede2155ff122c5d83e11b47691ea9bd7e.1705792641.git.jaeme@runbox.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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: , Reply-to: Jaeme Sifat X-ACL-Warn: , Jaeme Sifat via Guix-patches X-Patchwork-Original-From: Jaeme Sifat via Guix-patches via From: Jaeme Sifat Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-spin-sleep-1): New variable. Change-Id: Ic8616daadbbb797627fcfa79a3bfd9d196557a24 --- gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f40f9dc9fa..e25dbdbd8c 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -69642,6 +69642,29 @@ (define-public rust-spin-on-0.1 ready. This will probably use a lot of CPU, so be careful when you use it.") (license (list license:asl2.0 license:expat)))) +(define-public rust-spin-sleep-1 + (package + (name "rust-spin-sleep") + (version "1.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "spin_sleep" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0zrllbf1ksc6srjgbslk2fn5c9fp5f1rrrw2n0301xza9639g2in")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-windows-sys" ,rust-windows-sys-0.52)) + #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)))) + (home-page "https://github.com/alexheretic/spin-sleep") + (synopsis "Accurate sleeping and spinning") + (description + "This library adds a middle ground, using a configurable native accuracy setting +allowing @code{thread::sleep} to wait the bulk of a sleep time, and spin the final +section to guarantee accuracy.") + (license license:asl2.0))) + (define-public rust-spinning-top-0.2 (package (name "rust-spinning-top")