diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-03-02 14:25:09 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-03-02 17:46:04 +0100 |
commit | a94fc2bdfc268fa8183eaebb8fefe207079e8e19 (patch) | |
tree | 4776eb60a5dc2621c72b6e4ed6b5b8dac5009e6b /gnu/packages | |
parent | 3c0e6923228e94751d82681f67b908eff755889e (diff) | |
download | guix-a94fc2bdfc268fa8183eaebb8fefe207079e8e19.tar.gz |
gnu: Add rust-snailquote-0.3.
* gnu/packages/crates-io.scm (rust-snailquote-0.3): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-io.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 209b939cf3..3c14b8f614 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") |