# 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 = "analyzed-ra-ide-db"
version = "0.4.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Patched ra_ap_ide_db bridge crate for analyzed"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/zetaloop/analyzed"

[features]
default = []
in-rust-tree = []

[lib]
name = "ra_ap_ide_db"
path = "src/lib.rs"
test = false
doctest = false

[[test]]
name = "lib_parity"
path = "tests/lib_parity.rs"

[dependencies.arrayvec]
version = "0.7.6"

[dependencies.base-db]
version = "=0.0.340"
package = "ra_ap_base_db"

[dependencies.bitflags]
version = "2.9.1"

[dependencies.cov-mark]
version = "2.0.0"

[dependencies.crossbeam-channel]
version = "0.5.15"

[dependencies.either]
version = "1.15.0"

[dependencies.fst]
version = "0.4.7"
default-features = false

[dependencies.hir]
version = "=0.0.340"
package = "ra_ap_hir"

[dependencies.itertools]
version = "0.14.0"

[dependencies.line-index]
version = "0.1.2"

[dependencies.macros]
version = "=0.0.340"
package = "ra_ap_macros"

[dependencies.memchr]
version = "2.7.5"

[dependencies.nohash-hasher]
version = "0.2.0"

[dependencies.parser]
version = "=0.0.340"
package = "ra_ap_parser"

[dependencies.profile]
version = "=0.0.340"
package = "ra_ap_profile"

[dependencies.rayon]
version = "1.10.0"

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

[dependencies.salsa]
version = "0.27.0"
features = [
    "rayon",
    "salsa_unstable",
    "macros",
    "inventory",
]
default-features = false

[dependencies.salsa-macros]
version = "0.27.0"

[dependencies.smallvec]
version = "1.15.1"
features = [
    "const_new",
    "union",
    "const_generics",
]

[dependencies.span]
version = "=0.0.340"
package = "ra_ap_span"

[dependencies.stdx]
version = "=0.0.340"
package = "ra_ap_stdx"

[dependencies.syntax]
version = "=0.0.340"
package = "ra_ap_syntax"

[dependencies.test-fixture]
version = "=0.0.340"
package = "ra_ap_test_fixture"

[dependencies.test-utils]
version = "=0.0.340"
package = "ra_ap_test_utils"

[dependencies.tracing]
version = "0.1.41"
features = [
    "std",
    "attributes",
]
default-features = false

[dependencies.triomphe]
version = "0.1.14"
features = ["std"]
default-features = false

[dependencies.vfs]
version = "=0.0.340"
package = "ra_ap_vfs"

[dev-dependencies.expect-test]
version = "1.5.1"

[build-dependencies.analyzed-bridge]
version = "=0.4.1"

[target."cfg(any())".dependencies.ra_ap_ide_db]
version = "=0.0.340"

[lints.clippy]
assigning_clones = "allow"
dbg_macro = "warn"
enum_variant_names = "allow"
len_without_is_empty = "allow"
literal_string_with_formatting_args = "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"
unnecessary_map_or = "allow"
useless_asref = "allow"
vec_init_then_push = "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"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(bootstrap)",
    "cfg(no_salsa_async_drops)",
]
