From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-patches-bounces+larch=yhetil.org@gnu.org>
Received: from mp0.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms13.migadu.com with LMTPS
	id qPxmA+gEhWbjHQAAqHPOHw:P1
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 03 Jul 2024 07:59:36 +0000
Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp0.migadu.com with LMTPS
	id qPxmA+gEhWbjHQAAqHPOHw
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 03 Jul 2024 09:59:36 +0200
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=W0SYh6hI;
	dmarc=pass (policy=none) header.from=gnu.org;
	spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1719993575;
	h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:resent-cc:
	 resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=jrHwvirpWxysF5SEtTEtUi3X8zRx0LTU49h//O9xlUo=;
	b=gQo56OZeCMOmI2C07WaK4Ux1xHmqOPz7FZNxZvevYXsaCXfB1okwRf4rB6WYp22FOhA7/K
	Q8t+sj8cQklO+Da3G8oDWgTcAfgmkriG1MshCuXpFaC8itc0E8T6/XgfmdQYGZBZ+DoT/d
	4ut3GtOA1rxqxxMiKn16uoiBbu+wGuMKP14CnRxs/OsuOGYcu+aOUmyRlZynqm3ubXvH0l
	Tg9PoXNjWcihzNybpzdSm3/5MS80r4qgN+nQLzOep6nPOo0F66LyyUbfe8e22teldQETmy
	v8fg5lzwcKs8ydgqDP3Z75P6AR6dKTmdx6fw2jNE/Q6Tty7ebdGyzkB6okGotg==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719993575; a=rsa-sha256; cv=none;
	b=ch1W4cg6jSRP6UhR4LQwjin0PuwcUmu+K/lIOAkj/gQ/RhMtBj1Zt4pQN8/ZSBTtHGC+SU
	YATa56pS/6NcJCumGH9dFHs7ooVu8xg8eWyzwNAXLBMu65fTztMGLv9n8ppTf23KLX3p9n
	5RIijIyfVh/Kpe9TRKAqQCtjJl+lky65V0WmKwYBc4iqqC1//E78pEFXN54xuWp/CoPVOW
	FLohcf7fJBoeifRcdB+iN8en8mLy9YWDENRtGFrsBvYpQr23FTfvnccQBFUyeVouk0npFx
	QZf2GXokPon1cGBi56CiM7CQD2Nxj+eHMItApMlt/z6VznaGDwXG9akI8FzM7Q==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=W0SYh6hI;
	dmarc=pass (policy=none) header.from=gnu.org;
	spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id CD50A7B47D
	for <larch@yhetil.org>; Wed, 03 Jul 2024 09:59:35 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-patches-bounces@gnu.org>)
	id 1sOutL-0001AF-Ec; Wed, 03 Jul 2024 03:59:03 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1sOutJ-00016o-N8
 for guix-patches@gnu.org; Wed, 03 Jul 2024 03:59:01 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1sOutJ-0007UG-Cw
 for guix-patches@gnu.org; Wed, 03 Jul 2024 03:59:01 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1sOutK-0002xZ-Vj; Wed, 03 Jul 2024 03:59:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#71914] [PATCH 04/10] gnu: Add rust-ammonia-4.
Resent-From: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong <mcsinyx@disroot.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org
Resent-Date: Wed, 03 Jul 2024 07:59:02 +0000
Resent-Message-ID: <handler.71914.B71914.171999351811238@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 71914
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 71914@debbugs.gnu.org
Cc: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong <mcsinyx@disroot.org>,
 Efraim Flashner <efraim@flashner.co.il>
X-Debbugs-Original-Xcc: Efraim Flashner <efraim@flashner.co.il>
Received: via spool by 71914-submit@debbugs.gnu.org id=B71914.171999351811238
 (code B ref 71914); Wed, 03 Jul 2024 07:59:02 +0000
Received: (at 71914) by debbugs.gnu.org; 3 Jul 2024 07:58:38 +0000
Received: from localhost ([127.0.0.1]:38580 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1sOusv-0002vA-V1
 for submit@debbugs.gnu.org; Wed, 03 Jul 2024 03:58:38 -0400
Received: from layka.disroot.org ([178.21.23.139]:55128)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mcsinyx@disroot.org>) id 1sOuss-0002uo-Iw
 for 71914@debbugs.gnu.org; Wed, 03 Jul 2024 03:58:35 -0400
X-Virus-Scanned: SPAM Filter at disroot.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1719993511; bh=rnkdsTxQnrMh85Z+eI2ukDwdWtaEpxVxHYQ3Mgo+44k=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References;
 b=W0SYh6hI/9bse+sKxzOy3aox6f47F7Gqxy+dv4j62p8707muvnNSjV7N4Aoh4EQIX
 dOPX5+s3NSm3Xj3gXPKc0Sg3wipdTCA/nMVdFkLmJanGSDYjXn1zrLrJVokmG9Yn+d
 HheSWP0Xz0h7o4ekeqotmSFSJaL4otZ455xIxgr4yuvxFmxxyWDUFVpTpsAKiSeBKX
 xlX27yAJ7jRG1UdEkWBiTCcHpVGs/ay/MMGpGjfM5tyeDklxJoIFAUiBXz7QQTBHt5
 yiHK2SM7e1GY0Aw9bFjatDtkFRV4Kisv5DMlO0vZ79y987j2fbhdMMmEl76Q3MbMzM
 Mst5+T2ulzlVg==
Date: Wed,  3 Jul 2024 16:57:55 +0900
Message-ID: <e18b00e781878382804f0b26435660ea1d596540.1719992277.git.mcsinyx@disroot.org>
In-Reply-To: <cover.1719992277.git.mcsinyx@disroot.org>
References: <cover.1719992277.git.mcsinyx@disroot.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: guix-patches@gnu.org
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Reply-to:  =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong <mcsinyx@disroot.org>
X-ACL-Warn: ,  =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?=
 <guix-patches@gnu.org>
From: guix-patches--- via <guix-patches@gnu.org>
Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org
Sender: guix-patches-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Spam-Score: -3.88
X-Spam-Score: -3.88
X-Migadu-Queue-Id: CD50A7B47D
X-Migadu-Scanner: mx11.migadu.com
X-TUID: wu00rSo9uxZb

* gnu/packages/crates-web.scm (rust-ammonia-4): New variable.

Change-Id: Ibe8921d7119c5c75959f50c427d2d11024f30b88
---
 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 60c735efa76b..2d5a4a56e59f 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.
 ;;;
@@ -1490,6 +1491,34 @@ (define-public rust-actix-web-codegen-0.1
     (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")
-- 
2.45.2