From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OFYxNn0PRWDFcAAA0tVLHw (envelope-from ) for ; Sun, 07 Mar 2021 17:38:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sGrvMX0PRWD5aQAAB5/wlQ (envelope-from ) for ; Sun, 07 Mar 2021 17:38:05 +0000 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 8B9B114C9D for ; Sun, 7 Mar 2021 18:38:05 +0100 (CET) Received: from localhost ([::1]:59296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIxLw-0000UG-Ls for larch@yhetil.org; Sun, 07 Mar 2021 12:38:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIxKz-0007hx-CD for guix-patches@gnu.org; Sun, 07 Mar 2021 12:37:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIxKz-00069Q-4T for guix-patches@gnu.org; Sun, 07 Mar 2021 12:37:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIxKz-0003pS-2F for guix-patches@gnu.org; Sun, 07 Mar 2021 12:37:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44492] [PATCH v3 24/46] gnu: Add rust-ammonia-3. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 Mar 2021 17:37:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo To: 44492@debbugs.gnu.org Received: via spool by 44492-submit@debbugs.gnu.org id=B44492.161513858514384 (code B ref 44492); Sun, 07 Mar 2021 17:37:05 +0000 Received: (at 44492) by debbugs.gnu.org; 7 Mar 2021 17:36:25 +0000 Received: from localhost ([127.0.0.1]:41373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIxKK-0003jw-Q4 for submit@debbugs.gnu.org; Sun, 07 Mar 2021 12:36:25 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:22663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIxKI-0003jf-RF for 44492@debbugs.gnu.org; Sun, 07 Mar 2021 12:36:23 -0500 Received: from localhost.localdomain (217-149-164-20.nat.highway.telekom.at [217.149.164.20]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DtpYJ1kW2z3wL9 for <44492@debbugs.gnu.org>; Sun, 7 Mar 2021 18:36:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1615138580; bh=+2MRtQ1KcASk6TxYMCii/IzNmg0spYrNuyLsMBSMFec=; h=From:To:Subject:Date:In-Reply-To:References; b=EragJwtlCDUYNySBruEy5uq1UsSzr6bYKmZ+yBK7HeoTF00iIAUuOqPXhsHhi7OWm QQG5fSEaLnppzy2Ccgu9vFc+GYGLNuZ2WTacglqBsnhliJl/FjzACCHBTFjtC/SqLG 2RCKmfALbFDKJ5XXeE8Zims3XSsO3+FNQUSzYeiU= From: Leo Prikler Date: Sun, 7 Mar 2021 18:34:36 +0100 Message-Id: <20210307173459.3048-24-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210307173459.3048-1-leo.prikler@student.tugraz.at> References: <20210307173459.3048-1-leo.prikler@student.tugraz.at> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615138685; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: 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=+2MRtQ1KcASk6TxYMCii/IzNmg0spYrNuyLsMBSMFec=; b=j7KzrA41FjToRSTzRPQ2gh3DFWIVGcKDokGLtBsv/Paor8CV3ETQQghJ8rRbJ5RnSpY4X3 IqmR57CZliG3muGYkIZwK7e5cRJg5jcOgRcVa5bVl1afRRyzInV6wBG6xBRp5AEaOZn59r ZDvylupW+9GzU6vwZcaBldJNbZWDF+LgxK4i0DulULVtHZgbmzQ1jX47Tz2lIA+0JvveLU Jex7H6B+9f6Jrtd7zpje/T49J30W3oMb401baYNDEg98QZ6aBp4s1iOJxWzc6iluENe34G adch+3ryMA6tDwxwADYuUcQioRezNxOHnKg6UNFIvF6Ci7Cpy2SlxOVTCUm1Bg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615138685; a=rsa-sha256; cv=none; b=Q5AuRb2ukMHmU/DWQI7QYY6OR6krOUdWwmGp2UJ/DmXpqZTnaEKaLtqQ+k7IDChPP8CvIY rPrahlKaxMni6Tqh84vDzi3OOBQUTa+UR3oq9OClq0y32sHY1xgYhUzNzwtZUTQ0hectRb vXp4wtd/2kHc4PABcby91TYB4k172fyEDMmd6kij8jUKOVeQBGQBD7GXXcZnbSraD1nTTj CBCdG1Xp1ZQQ12/tfkwzAFjkBb9pZ3lQhf/YBF4XzGwULkjHyn+RsRIFjx/FR7DBRbHKC5 Po+jUofebjJ3MZVwJMvrAZ7k0BgzuxxjQ25AZBVKTPdzUUP5xFb8KnQDqcXj7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=EragJwtl; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=EragJwtl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 8B9B114C9D X-Spam-Score: 3.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: wQQ5nsUTe18J * gnu/packages/crates-io.scm (rust-ammonia-3): New variable. --- gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index faacdba674..ba7ebf5f0f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1700,6 +1700,40 @@ options to use calloc or a mutable global variable for pre-zeroed memory.") be used with the stdlib.") (license license:bsd-3))) +(define-public rust-ammonia-3 + (package + (name "rust-ammonia") + (version "3.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ammonia" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0fzaj1fx3yhz2qd47gfvz7n8xjrnn37w2hp4qlyzpczlf18wisl9")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-html5ever" ,rust-html5ever-0.25) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-maplit" ,rust-maplit-1) + ("rust-markup5ever-rcdom" + ,rust-markup5ever-rcdom-0.1) + ("rust-matches" ,rust-matches-0.1) + ("rust-tendril" ,rust-tendril-0.4) + ("rust-url" ,rust-url-2)) + #:cargo-development-inputs + (("rust-version-sync" ,rust-version-sync-0.8)))) + (home-page "https://github.com/rust-ammonia/ammonia") + (synopsis "HTML Sanitization") + (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-android-glue-0.2 (package (name "rust-android-glue") -- 2.30.1