diff options
author | Pierre Langlois <pierre.langlois@gmx.com> | 2022-02-18 14:39:19 +0000 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-02-28 14:09:04 +0200 |
commit | 29d66d10c5681ea5582e15db5ec05b30d6a1cb2e (patch) | |
tree | 9c552deec7ea5608a1d91e82b782df22ed95e9cc | |
parent | 9c65a97a2fb8599fabe379c1fe8d0c861a72c30a (diff) | |
download | guix-29d66d10c5681ea5582e15db5ec05b30d6a1cb2e.tar.gz |
gnu: Add rust-html-escape.
* gnu/packages/crates-io.scm (rust-html-escape-0.2): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/crates-io.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ccfd9dafff..6b0d4ba860 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -27381,6 +27381,30 @@ Hash-based Message Authentication Code algorithm} for SHA1.") "This package provides a library for HTML entity encoding and decoding.") (license (list license:asl2.0 license:expat license:mpl2.0)))) +(define-public rust-html-escape-0.2 + (package + (name "rust-html-escape") + (version "0.2.9") + (source (origin + (method url-fetch) + (uri (crate-uri "html-escape" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1dxw9lpckrqzzqgbkw64ckbajr4b7xxnjdn8adgzqf2mm40shvl1")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-utf8-width" ,rust-utf8-width-0.1)) + #:cargo-development-inputs + (("rust-bencher" ,rust-bencher-0.1)))) + (home-page "https://magiclen.org/html-escape") + (synopsis "Library for encoding and escaping special characters in HTML") + (description + "This package provides a library for encoding and escaping special +characters in HTML, decoding and unescaping HTML entities as well.") + (license license:expat))) + (define-public rust-http-0.2 (package (name "rust-http") |