[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH v7 03/32] gnu: Add rust-html-escape.
From: |
Pierre Langlois |
Subject: |
[bug#49946] [PATCH v7 03/32] gnu: Add rust-html-escape. |
Date: |
Fri, 25 Nov 2022 01:21:13 +0000 |
* gnu/packages/crates-io.scm (rust-html-escape): New variable.
---
gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 792779a28f..cb3d83de5d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -25913,6 +25913,30 @@ (define-public rust-htmlescape-0.3
"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.12")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "html-escape" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "01f2v3c6j2rk5h2lhdbh62j07cm1fvzqw4vplj2sms83jpx5qc8m"))))
+ (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-hts-sys-2
(package
(name "rust-hts-sys")
--
2.38.1
- [bug#49946] [PATCH v7 00/32] gnu: Add tree-sitter for emacs., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 02/32] gnu: tree-sitter: Update to 0.20.7., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 01/32] gnu: tree-sitter: Move to its own module., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 04/32] gnu: Add rust-smallbitvec-2., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 03/32] gnu: Add rust-html-escape.,
Pierre Langlois <=
- [bug#49946] [PATCH v7 08/32] gnu: Add tree-sitter-cpp., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 10/32] gnu: Add tree-sitter-css., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 07/32] gnu: Add tree-sitter-c., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 05/32] gnu: Add tree-sitter-cli., Pierre Langlois, 2022/11/24