diff options
-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") |