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_ui::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 = "std::process::Command::stdin", reason = "`smol::process::Command::from()` does not preserve stdio configuration", replacement = "smol::process::Command::stdin" },
13    { path = "std::process::Command::stdout", reason = "`smol::process::Command::from()` does not preserve stdio configuration", replacement = "smol::process::Command::stdout" },
14    { path = "std::process::Command::stderr", reason = "`smol::process::Command::from()` does not preserve stdio configuration", replacement = "smol::process::Command::stderr" },
15    { 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." },
16    { 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." },
17]
18disallowed-types = [
19    # { path = "std::collections::HashMap", replacement = "collections::HashMap" },
20    # { path = "std::collections::HashSet", replacement = "collections::HashSet" },
21    # { path = "indexmap::IndexSet", replacement = "collections::IndexSet" },
22    # { path = "indexmap::IndexMap", replacement = "collections::IndexMap" },
23]