forked from forrestdip/kamu-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeny.toml
115 lines (101 loc) · 2.98 KB
/
deny.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[bans]
# Forbid multiple versions of same dependency (with some exceptions)
# TODO: Change to "deny" once we crack down on duplication
multiple-versions = "warn"
# Avoid adding dependencies to this list as this slows down compilation.
# Find another ways to avoid duplication.
skip-tree = []
# We should always specify version ranges
wildcards = "deny"
# We specify features explicitly to avoid bloat
workspace-default-features = "deny"
features = [
{ name = "opendatafabric", allow = [
"default",
"sqlx",
"sqlx-mysql",
"sqlx-postgres",
"sqlx-sqlite",
] },
{ name = "kamu", allow = [
"default",
"ingest-evm",
"ingest-ftp",
"ingest-mqtt",
"query-extensions-json",
] },
{ name = "kamu-accounts", allow = [
"default",
"sqlx",
] },
{ name = "kamu-datasets", allow = [
"default",
"sqlx",
] },
{ name = "kamu-cli", allow = [
"default",
] },
]
deny = [
### Crates we shouldn't use ####
# Use `md-5` instead, which is part of the RustCrypto ecosystem
{ name = "md5" },
# TODO: We should decide whether to stick with rustls or openssl and deny one of them
### Creates we deny multiple versions of ###
# This is a temporary approach until we deny by default with some exceptions
{ name = "alloy", deny-multiple-versions = true },
{ name = "arrow", deny-multiple-versions = true },
{ name = "axum", deny-multiple-versions = true },
{ name = "aws-config", deny-multiple-versions = true },
{ name = "clap", deny-multiple-versions = true },
{ name = "datafusion", deny-multiple-versions = true },
{ name = "dill", deny-multiple-versions = true },
# { name = "hyper", deny-multiple-versions = true },
{ name = "object_store", deny-multiple-versions = true },
{ name = "parquet", deny-multiple-versions = true },
{ name = "prost", deny-multiple-versions = true },
# { name = "reqwest", deny-multiple-versions = true },
# { name = "rustls", deny-multiple-versions = true },
{ name = "sqlx", deny-multiple-versions = true },
{ name = "tokio", deny-multiple-versions = true },
{ name = "tonic", deny-multiple-versions = true },
]
[licenses]
allow = [
"Apache-2.0",
"CC0-1.0",
"0BSD",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"ISC",
"MIT",
"MPL-2.0",
"OpenSSL",
"Unicode-3.0",
"Unlicense",
"Zlib",
]
private = { ignore = true }
[[licenses.exceptions]]
allow = ["Unicode-DFS-2016"]
name = "unicode-ident"
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
[sources]
unknown-git = "deny"
unknown-registry = "deny"
allow-org = { github = [
"kamu-data",
"apache",
"alloy-rs",
"datafusion-contrib",
] }
[advisories]
yanked = "deny"
# TODO: Remove when patches are available
ignore = [
"RUSTSEC-2023-0071", # https://rustsec.org/advisories/RUSTSEC-2023-0071.html
]