guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

263/311: gnu: Add rust-powerfmt-0.2.


From: guix-commits
Subject: 263/311: gnu: Add rust-powerfmt-0.2.
Date: Sat, 28 Oct 2023 16:39:34 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 5cbeeb64f1d09727ac95ecbb500b28e3801e62da
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Oct 28 09:53:28 2023 +0300

    gnu: Add rust-powerfmt-0.2.
    
    * gnu/packages/crates-io.scm (rust-powerfmt-0.2): New variable.
    (rust-powerfmt-macros-0.1): New variable.
    
    Change-Id: I6d4771cfb2b2e8093cbb8d1bbe0a4b798d9fc633
---
 gnu/packages/crates-io.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0fc4d84355..e669f39ae9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -54645,6 +54645,51 @@ I/O library.")
 and Postgres values.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-powerfmt-0.2
+  (package
+    (name "rust-powerfmt")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "powerfmt" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "14ckj2xdpkhv3h6l5sdmb9f1d57z8hbfpdldjc2vl5givq2y77j3"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-powerfmt-macros" ,rust-powerfmt-macros-0.1))))
+    (home-page "https://github.com/jhpratt/powerfmt";)
+    (synopsis "Library that provides utilities for formatting values")
+    (description
+     "`powerfmt` is a library that provides utilities for formatting values.
+This crate makes it significantly easier to support filling to a minimum width
+with alignment, avoid heap allocation, and avoid repetitive calculations.")
+    (license (list license:expat license:asl2.0))))
+
+(define-public rust-powerfmt-macros-0.1
+  (package
+    (name "rust-powerfmt-macros")
+    (version "0.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "powerfmt-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "097ir0g2hjq6sx20nc3k7r7cnyyflgn5lv64jmghyp5g63i5bwx8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/jhpratt/powerfmt";)
+    (synopsis "Procedural macros for `powerfmt`")
+    (description
+     "Procedural macros for `powerfmt`.  This crate is an implementation detail
+and should not be relied upon directly.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-ppv-lite86-0.2
   (package
     (name "rust-ppv-lite86")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]