1allow-private-module-inception = true
2avoid-breaking-exported-api = false
3ignore-interior-mutability = [
4 # Suppresses clippy::mutable_key_type, which is a false positive as the Eq
5 # and Hash impls do not use fields with interior mutability.
6 "agent::context::AgentContextKey"
7]
8disallowed-methods = [
9 { path = "std::process::Command::spawn", reason = "Spawning `std::process::Command` can block the current thread for an unknown duration", replacement = "smol::process::Command::spawn" },
10 { path = "std::process::Command::output", reason = "Spawning `std::process::Command` can block the current thread for an unknown duration", replacement = "smol::process::Command::output" },
11 { path = "std::process::Command::status", reason = "Spawning `std::process::Command` can block the current thread for an unknown duration", replacement = "smol::process::Command::status" },
12 { path = "serde_json::from_reader", reason = "Parsing from a buffer is much slower than first reading the buffer into a Vec/String, see https://github.com/serde-rs/json/issues/160#issuecomment-253446892. Use `serde_json::from_slice` instead." },
13 { path = "serde_json_lenient::from_reader", reason = "Parsing from a buffer is much slower than first reading the buffer into a Vec/String, see https://github.com/serde-rs/json/issues/160#issuecomment-253446892, Use `serde_json_lenient::from_slice` instead." },
14]
15disallowed-types = [
16 # { path = "std::collections::HashMap", replacement = "collections::HashMap" },
17 # { path = "std::collections::HashSet", replacement = "collections::HashSet" },
18 # { path = "indexmap::IndexSet", replacement = "collections::IndexSet" },
19 # { path = "indexmap::IndexMap", replacement = "collections::IndexMap" },
20]