From be611fc258b6dbcc2d0a1d11dd4b6140cfd4299a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 26 Jun 2023 17:40:21 +0200 Subject: [PATCH] ci: Ban some serde_json features --- .deny.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.deny.toml b/.deny.toml index f2b1462a..72b9cdb2 100644 --- a/.deny.toml +++ b/.deny.toml @@ -38,6 +38,17 @@ license-files = [ multiple-versions = "warn" wildcards = "deny" +[[bans.features]] +name = "serde_json" +# These features all don't make sense to activate from a library as they apply +# globally to all users of serde_json. Make sure we don't enable them somehow. +deny = [ + "arbitrary_precision", + "float_roundtrip", + "preserve_order", + "unbounded_depth", +] + [sources] unknown-registry = "deny" unknown-git = "deny"