sightline-ruff-python-parser 0.1.0

sightline's fork of ruff_python_parser, an internal crate of ruff and ty (astral-sh/ruff), as the sightline binary pins it
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95"
name = "sightline-ruff-python-parser"
version = "0.1.0"
authors = [
    "Charlie Marsh <charlie.r.marsh@gmail.com>",
    "RustPython Team",
]
build = false
exclude = [
    "tests/**",
    "resources/**",
    "benches/**",
    "fuzz/**",
    "**/snapshots/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "sightline's fork of ruff_python_parser, an internal crate of ruff and ty (astral-sh/ruff), as the sightline binary pins it"
homepage = "https://github.com/Skyway1111/ty-unnecessary"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Skyway1111/ty-unnecessary"
resolver = "2"

[lib]
name = "ruff_python_parser"
path = "src/lib.rs"

[dependencies.bitflags]
version = "2.5.0"

[dependencies.bstr]
version = "1.9.1"

[dependencies.drop_bomb]
version = "0.1.5"

[dependencies.get-size2]
version = "0.10.3"
features = [
    "derive",
    "smallvec",
    "hashbrown",
    "compact-str",
    "ordermap",
    "thin-vec",
]

[dependencies.memchr]
version = "2.7.1"

[dependencies.ruff_python_ast]
version = "0.1.0"
features = ["get-size"]
package = "sightline-ruff-python-ast"

[dependencies.ruff_python_trivia]
version = "0.1.0"
package = "sightline-ruff-python-trivia"

[dependencies.ruff_text_size]
version = "0.1.0"
features = ["get-size"]
package = "sightline-ruff-text-size"

[dependencies.rustc-hash]
version = "2.0.0"

[dependencies.stacker]
version = "0.1.24"

[dependencies.static_assertions]
version = "1.1.0"

[dependencies.thin-vec]
version = "0.2.14"

[dependencies.unicode-ident]
version = "1.0.12"

[dependencies.unicode-normalization]
version = "0.1.23"

[dependencies.unicode_names2]
version = "1.2.2"

[dev-dependencies.annotate_snippets]
version = "0.1.0"
package = "sightline-ruff-annotate-snippets"

[dev-dependencies.anyhow]
version = "1.0.80"

[dev-dependencies.datatest-stable]
version = "0.3.3"

[dev-dependencies.insta]
version = "1.35.1"

[dev-dependencies.itertools]
version = "0.15.0"

[dev-dependencies.ruff_python_ast]
version = "0.1.0"
features = ["serde"]
package = "sightline-ruff-python-ast"

[dev-dependencies.ruff_source_file]
version = "0.1.0"
package = "sightline-ruff-source-file"

[dev-dependencies.serde]
version = "1.0.197"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0.113"

[dev-dependencies.walkdir]
version = "2.3.2"

[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)",
]