guix-commits
[Top][All Lists]
Advanced

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

08/11: gnu: Add rust-snailquote-0.3.


From: guix-commits
Subject: 08/11: gnu: Add rust-snailquote-0.3.
Date: Tue, 2 Mar 2021 11:47:01 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit a94fc2bdfc268fa8183eaebb8fefe207079e8e19
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue Mar 2 14:25:09 2021 +0100

    gnu: Add rust-snailquote-0.3.
    
    * gnu/packages/crates-io.scm (rust-snailquote-0.3): New variable.
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 209b939..3c14b8f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38226,6 +38226,39 @@ control on the fields.")
     (description "This package provides a small and fast async runtime.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-snailquote-0.3
+  (package
+    (name "rust-snailquote")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "snailquote" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "04687yzvgk3ja0ch7k96w3v36fzvqd9ci2l5k12ijligh2fp4jzk"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-thiserror" ,rust-thiserror-1)
+        ("rust-unicode-categories" ,rust-unicode-categories-0.1))))
+    (home-page "https://github.com/euank/snailquote";)
+    (synopsis "Escape and unescape strings with shell-inspired quoting")
+    (description
+     "This library provides functions to escape and unescape strings.
+
+It escapes them in a roughly ``sh'' compatible way (e.g. double quotes
+supporting backslash escapes, single quotes supporting no escapes).
+
+In addition, it provides support for common C-like ASCII escapes (like
+@samp{\\n} for newline, @samp{\\v} for vertical tab, etc.) and Rust
+string-like Unicode (via @samp{\\u@{12ff@}} style escapes).
+
+More importantly, this library also provides the ability to un-escape a given
+escaped text to recover the original string.")
+    (license license:gpl3)))
+
 (define-public rust-socket2-0.3
   (package
     (name "rust-socket2")



reply via email to

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