Repository navigation
Expand file tree
/
Copy pathclippy.toml
More file actions
18 lines (17 loc) · 1.64 KB
/
Copy pathclippy.toml
File metadata and controls
18 lines (17 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Env vars come from Barrel (C:/Git/Barrel): read them through barrel_client, never std::env.
disallowed-methods = [
{ path = "std::env::var", reason = "read Barrel-injected config via barrel_client (C:/Git/Barrel/crates/barrel-client), not std::env" },
{ path = "std::env::var_os", reason = "read Barrel-injected config via barrel_client (C:/Git/Barrel/crates/barrel-client), not std::env" },
{ path = "std::env::vars", reason = "read Barrel-injected config via barrel_client (C:/Git/Barrel/crates/barrel-client), not std::env" },
{ path = "std::env::vars_os", reason = "read Barrel-injected config via barrel_client (C:/Git/Barrel/crates/barrel-client), not std::env" },
{ path = "std::env::set_var", reason = "the process env is Barrel-owned; inject via `barrel run`, do not mutate it" },
{ path = "std::env::remove_var", reason = "the process env is Barrel-owned; inject via `barrel run`, do not mutate it" },
]
disallowed-types = [
# SipHash (std's default hasher) is slow: use foldhash by default, ahash where a peer picks keys, rapidhash for stable output.
{ path = "std::collections::HashMap", reason = "SipHash by default; use foldhash::HashMap, ahash::AHashMap or a rapidhash map" },
{ path = "std::collections::HashSet", reason = "SipHash by default; use foldhash::HashSet, ahash::AHashSet or a rapidhash set" },
{ path = "std::hash::RandomState", reason = "SipHash; use the foldhash, ahash or rapidhash state" },
{ path = "std::hash::DefaultHasher", reason = "SipHash; use rapidhash::fast::RapidHasher for stable hashes" },
{ path = "std::io::Write", reason = "use tracing instead of writing output directly" },
]