-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
16 lines (14 loc) · 913 Bytes
/
Copy pathclippy.toml
File metadata and controls
16 lines (14 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Invariant 5b: static checks against direct network API use in base crates.
# cargo-deny (5a) cannot catch direct std::net use; this can. Layer 5c (runtime no-egress
# test) lives in CI. Sandbox IPC code (Milestone D) may carry an explicit, ADR-referenced
# #[allow] with reviewer sign-off.
disallowed-types = [
{ path = "std::net::TcpStream", reason = "no network in base crates (invariant 5b)" },
{ path = "std::net::TcpListener", reason = "no network in base crates (invariant 5b)" },
{ path = "std::net::UdpSocket", reason = "no network in base crates (invariant 5b)" },
]
disallowed-methods = [
{ path = "std::net::TcpStream::connect", reason = "no network in base crates (invariant 5b)" },
{ path = "std::net::TcpListener::bind", reason = "no network in base crates (invariant 5b)" },
{ path = "std::net::UdpSocket::bind", reason = "no network in base crates (invariant 5b)" },
]