# 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 = "2021" name = "line-index" version = "0.1.2" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Maps flat `TextSize` offsets to/from `(line, column)` representation." readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/rust-analyzer/tree/master/lib/line-index" [lib] name = "line_index" path = "src/lib.rs" [dependencies.nohash-hasher] version = "0.2.0" [dependencies.text-size] version = "1.1.1" [dev-dependencies.oorandom] version = "11.1.3" [lints.clippy] assigning_clones = "allow" dbg_macro = "warn" enum_variant_names = "allow" len_without_is_empty = "allow" new_ret_no_self = "allow" print_stderr = "warn" print_stdout = "warn" rc_buffer = "warn" result_unit_err = "allow" single_match = "allow" str_to_string = "warn" todo = "warn" too_long_first_doc_paragraph = "allow" too_many_arguments = "allow" type_complexity = "allow" useless_asref = "allow" wrong_self_convention = "allow" [lints.clippy.complexity] level = "warn" priority = -1 [lints.clippy.correctness] level = "deny" priority = -1 [lints.clippy.perf] level = "deny" priority = -1 [lints.clippy.restriction] level = "allow" priority = -1 [lints.clippy.style] level = "warn" priority = -1 [lints.clippy.suspicious] level = "warn" priority = -1 [lints.rust] elided_lifetimes_in_paths = "warn" explicit_outlives_requirements = "warn" unreachable_pub = "warn" unsafe_op_in_unsafe_fn = "warn" unused_extern_crates = "warn" unused_lifetimes = "warn"