summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck8
-rw-r--r--deny.toml23
2 files changed, 31 insertions, 0 deletions
diff --git a/check b/check
new file mode 100755
index 0000000..f9133ed
--- /dev/null
+++ b/check
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -euo pipefail
+
+cargo clippy -q -- --deny=clippy::all
+cargo build -q --all-targets
+cargo test -q
+cargo deny check
diff --git a/deny.toml b/deny.toml
new file mode 100644
index 0000000..2c7cebb
--- /dev/null
+++ b/deny.toml
@@ -0,0 +1,23 @@
+[advisories]
+vulnerability = "deny"
+unmaintained = "deny"
+unsound = "deny"
+yanked = "deny"
+notice = "deny"
+severity-threshold = "low"
+
+[licenses]
+unlicensed = "deny"
+allow = [
+ "MIT",
+ "MIT-0",
+]
+copyleft = "deny"
+allow-osi-fsf-free = "neither"
+default = "deny"
+confidence-threshold = 0.8
+
+[bans]
+multiple-versions = "deny"
+wildcards = "deny"
+highlight = "all"