[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/10: gnu: Add rust-ammonia-4.
From: |
guix-commits |
Subject: |
04/10: gnu: Add rust-ammonia-4. |
Date: |
Wed, 3 Jul 2024 05:08:06 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 6756a0a7901de1e56157260498c0a89765352843
Author: Nguyễn Gia Phong <mcsinyx@disroot.org>
AuthorDate: Wed Jul 3 16:57:55 2024 +0900
gnu: Add rust-ammonia-4.
* gnu/packages/crates-web.scm (rust-ammonia-4): New variable.
Change-Id: Ibe8921d7119c5c75959f50c427d2d11024f30b88
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/crates-web.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 75ec4f4939..ee32c99374 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -9,6 +9,7 @@
;;; Copyright © 2023 VÖRÖSKŐI András <voroskoi@gmail.com>
;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu>
;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
+;;; Copyright © 2024 Nguyễn Gia Phong <mcsinyx@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1737,6 +1738,34 @@ the Actix ecosystem.")
(inputs
(list openssl))))
+(define-public rust-ammonia-4
+ (package
+ (name "rust-ammonia")
+ (version "4.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "ammonia" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0nd432yg1cl9kj4i9c37a9hvwffayqh6zsvb4fmh31g5bsp9xf8s"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("html5ever" ,rust-html5ever-0.27)
+ ("maplit" ,rust-maplit-1)
+ ("tendril" ,rust-tendril-0.4)
+ ("url" ,rust-url-2)
+ ("once_cell" ,rust-once-cell-1))
+ #:cargo-development-inputs (("version-sync" ,rust-version-sync-0.9)
+ ("env_logger" ,rust-env-logger-0.10))))
+ (home-page "https://github.com/rust-ammonia/ammonia")
+ (synopsis "Repair and secure untrusted HTML")
+ (description "Ammonia is a whitelist-based HTML sanitization library.
+It is designed to prevent cross-site scripting, layout breaking,
+and clickjacking caused by untrusted user-provided HTML
+being mixed into a larger web page.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-async-h1-2
(package
(name "rust-async-h1")
- branch rust-team updated (3f6d7f8133 -> 151a86f7cd), guix-commits, 2024/07/03
- 02/10: gnu: Add rust-markup5ever-0.12., guix-commits, 2024/07/03
- 03/10: gnu: Add rust-html5ever-0.27., guix-commits, 2024/07/03
- 05/10: gnu: Add rust-pyo3-build-config-0.21., guix-commits, 2024/07/03
- 04/10: gnu: Add rust-ammonia-4.,
guix-commits <=
- 06/10: gnu: Add rust-pyo3-ffi-0.21., guix-commits, 2024/07/03
- 08/10: gnu: Add rust-pyo3-macros-0.21., guix-commits, 2024/07/03
- 07/10: gnu: Add rust-pyo3-macros-backend-0.21., guix-commits, 2024/07/03
- 01/10: gnu: rust-typed-arena-2: Update to 2.0.2., guix-commits, 2024/07/03
- 09/10: gnu: Add rust-pyo3-0.21., guix-commits, 2024/07/03
- 10/10: gnu: Add python-nh3., guix-commits, 2024/07/03