[package]
edition = "2024"
rust-version = "1.92"
name = "rustpython-ruff_text_size"
version = "0.15.8"
authors = ["Charlie Marsh <charlie.r.marsh@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial fork for RustPython"
homepage = "https://docs.astral.sh/ruff"
documentation = "https://docs.astral.sh/ruff"
readme = false
license = "MIT"
repository = "https://github.com/astral-sh/ruff"
resolver = "2"
[features]
get-size = ["dep:get-size2"]
serde = ["dep:serde"]
[lib]
name = "rustpython_ruff_text_size"
path = "src/lib.rs"
[[test]]
name = "auto_traits"
path = "tests/auto_traits.rs"
[[test]]
name = "constructors"
path = "tests/constructors.rs"
[[test]]
name = "indexing"
path = "tests/indexing.rs"
[[test]]
name = "main"
path = "tests/main.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
required-features = ["serde"]
[dependencies.get-size2]
version = "0.7.3"
features = [
"derive",
"smallvec",
"hashbrown",
"compact-str",
"ordermap",
]
optional = true
[dependencies.schemars]
version = "1.0.4"
optional = true
[dependencies.serde]
version = "1.0.197"
features = ["derive"]
optional = true
[dev-dependencies.serde_test]
version = "1.0.152"
[dev-dependencies.static_assertions]
version = "1.1.0"
[lints.clippy]
char_lit_as_u8 = "allow"
collapsible_else_if = "allow"
collapsible_if = "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"
large_stack_arrays = "allow"
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)",
]