[package]
edition = "2024"
rust-version = "1.94"
name = "ty_plugin_protocol"
version = "0.0.3"
authors = ["Kevin Castro <hola@kev.pe>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stable serialized protocol types for ty semantic extensions."
homepage = "https://github.com/regularkevvv/ty-extended"
documentation = "https://docs.rs/ty_plugin_protocol"
readme = "README.md"
keywords = [
"ty",
"typing",
"extensions",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/regularkevvv/ruff-extended"
resolver = "2"
[lib]
name = "ty_plugin_protocol"
path = "src/lib.rs"
[[test]]
name = "compatibility"
path = "tests/compatibility.rs"
[[test]]
name = "protocol_json"
path = "tests/protocol_json.rs"
[dependencies.serde]
version = "1.0.197"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.113"
[dev-dependencies.insta]
version = "1.35.1"
features = ["json"]
[lints.clippy]
char_lit_as_u8 = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
disallowed_methods = "allow"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
get_unwrap = "warn"
if_not_else = "allow"
ignore_without_reason = "allow"
implicit_hasher = "allow"
iter_over_hash_type = "warn"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_raw_string_hashes = "allow"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
single_match_else = "allow"
too_many_lines = "allow"
unnecessary_debug_formatting = "allow"
unused_peekable = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -2
[lints.rust]
unreachable_pub = "warn"
unsafe_code = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(fuzzing)",
"cfg(codspeed)",
]