24 lines
1.4 KiB
TOML
24 lines
1.4 KiB
TOML
avoid-breaking-exported-api = false
|
|
disallowed-methods = [
|
|
# https://github.com/serde-rs/json/issues/160
|
|
{ path = "serde_json::from_reader", reason = "this function is slow", replacement = "serde_json::from_str" },
|
|
]
|
|
disallowed-types = [
|
|
{ path = "std::collections::HashMap", reason = "non-deterministic iteration / serialization order", replacement = "std::collections::BTreeMap" },
|
|
{ path = "std::collections::HashSet", reason = "non-deterministic iteration / serialization order", replacement = "std::collections::BTreeSet" },
|
|
{ path = "std::time::SystemTime", reason = "doesn't work under WASM", replacement = "web_time::SystemTime" },
|
|
{ path = "std::time::Instant", reason = "doesn't work under WASM", replacement = "web_time::Instant" },
|
|
]
|
|
enforced-import-renames = [
|
|
{ path = "serde_json::from_slice", rename = "from_json_slice" },
|
|
{ path = "serde_json::from_str", rename = "from_json_str" },
|
|
{ path = "serde_json::from_value", rename = "from_json_value" },
|
|
{ path = "serde_json::to_value", rename = "to_json_value" },
|
|
{ path = "serde_json::value::to_raw_value", rename = "to_raw_json_value" },
|
|
{ path = "serde_json::value::RawValue", rename = "RawJsonValue" },
|
|
{ path = "serde_json::Value", rename = "JsonValue" },
|
|
]
|
|
standard-macro-braces = [
|
|
{ name = "quote", brace = "{" },
|
|
{ name = "quote::quote", brace = "{" },
|
|
]
|