15 lines
996 B
TOML
15 lines
996 B
TOML
# The core library never reads the clock, the file system or the environment: ids, time
|
|
# and bytes are inputs (RUST_ARCHITECTURE_REVIEW III.3). Tests and the worker binary
|
|
# allow these lints locally where they own I/O.
|
|
disallowed-methods = [
|
|
{ path = "std::time::SystemTime::now", reason = "the core takes time as an input" },
|
|
{ path = "std::time::Instant::now", reason = "the core takes time as an input" },
|
|
{ path = "std::fs::read", reason = "the core takes bytes as inputs" },
|
|
{ path = "std::fs::read_to_string", reason = "the core takes bytes as inputs" },
|
|
{ path = "std::fs::write", reason = "the core returns bytes, the caller writes" },
|
|
{ path = "std::fs::File::open", reason = "the core takes bytes as inputs" },
|
|
{ path = "std::fs::File::create", reason = "the core returns bytes, the caller writes" },
|
|
{ path = "std::env::var", reason = "configuration is injected into the core" },
|
|
{ path = "std::env::var_os", reason = "configuration is injected into the core" },
|
|
]
|