Repository navigation
Expand file tree
/
Copy pathdeny.toml
More file actions
50 lines (46 loc) · 1.95 KB
/
Copy pathdeny.toml
File metadata and controls
50 lines (46 loc) · 1.95 KB
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
# https://embarkstudios.github.io/cargo-deny/
[advisories]
# Check all crates (workspace + transitive) for advisories.
version = 2
# Two pyo3 < 0.29 advisories, both fixed only in pyo3 0.29 and both non-issues
# for awpy-python's usage. The fix is not yet consumable: pyo3-polars 0.27
# (latest) still pins `pyo3 ^0.28`, and we need pyo3-polars for `PyDataFrame` —
# both link the `python` native library, so pyo3 0.29 cannot coexist. Drop
# these once pyo3-polars supports pyo3 0.29 and we bump.
ignore = [
# Missing `Sync` bound on `PyCFunction::new_closure`. We never call
# `new_closure` (only `#[pyfunction]` / `#[pyclass]` / `#[pymethods]`), and
# build against GIL-enabled CPython, not the free-threaded build the
# data-race window needs.
{ id = "RUSTSEC-2026-0177", reason = "unused API (no PyCFunction::new_closure); pyo3 0.29 fix not yet supported by pyo3-polars" },
# Out-of-bounds read in `nth` / `nth_back` for `PyList` / `PyTuple`
# iterators. We extract Python arguments into Rust `Vec`s and iterate those;
# we never call `.nth()` / `.nth_back()` on a `BoundListIterator` /
# `BoundTupleIterator`, so the vulnerable path is unreachable.
{ id = "RUSTSEC-2026-0176", reason = "unused API (no .nth on PyList/PyTuple iterators); pyo3 0.29 fix not yet supported by pyo3-polars" },
]
[licenses]
# Awpy is MIT-licensed. Allow permissive and weak-copyleft licenses.
# Unlisted licenses are denied by default.
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"MPL-2.0",
"Unicode-3.0",
"Zlib",
]
[bans]
# Warn on multiple versions of the same crate in the dependency tree.
multiple-versions = "warn"
# Allow all wildcard dependencies (common in workspaces).
wildcards = "allow"
[sources]
# Only allow crates from crates.io.
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []