# 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 = "ripr"
version = "0.7.0"
build = false
include = [
    "src/**",
    "tests/**",
    "examples/**",
    "README.md",
    "LICENSE-*",
    "Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Find static mutation-exposure gaps before expensive mutation testing"
homepage = "https://github.com/EffortlessMetrics/ripr/"
readme = "README.md"
keywords = [
    "mutation-testing",
    "testing",
    "rust",
    "static-analysis",
    "lsp",
]
categories = [
    "development-tools",
    "development-tools::testing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/EffortlessMetrics/ripr/"
resolver = "2"

[features]
default = [
    "lang-rust",
    "lang-typescript",
    "lang-python",
]
lang-python = ["dep:rustpython-parser"]
lang-rust = []
lang-typescript = [
    "dep:oxc_allocator",
    "dep:oxc_ast",
    "dep:oxc_parser",
    "dep:oxc_span",
]

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

[[bin]]
name = "ripr"
path = "src/main.rs"

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

[dependencies.oxc_allocator]
version = "0.130"
optional = true

[dependencies.oxc_ast]
version = "0.130"
optional = true

[dependencies.oxc_parser]
version = "0.130"
optional = true

[dependencies.oxc_span]
version = "0.130"
optional = true

[dependencies.ra_ap_syntax]
version = "0.0.330"

[dependencies.rustpython-parser]
version = "0.4"
features = [
    "location",
    "num-bigint",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "io-std",
    "io-util",
    "time",
]

[dependencies.toml]
version = "0.9"

[dependencies.tower-lsp-server]
version = "0.23.0"

[lints.clippy]
allow_attributes_without_reason = "deny"
arc_with_non_send_sync = "deny"
assertions_on_result_states = "deny"
await_holding_invalid_type = "deny"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
blanket_clippy_restriction_lints = "deny"
cast_abs_to_unsigned = "deny"
cast_enum_truncation = "deny"
cast_nan_to_int = "deny"
cast_sign_loss = "deny"
char_indices_as_byte_indices = "deny"
dbg_macro = "deny"
decimal_bitwise_operands = "warn"
drop_non_drop = "deny"
duration_suboptimal_units = "warn"
error_impl_error = "deny"
expect_used = "deny"
expl_impl_clone_on_copy = "deny"
fallible_impl_from = "deny"
float_cmp = "deny"
float_cmp_const = "deny"
float_equality_without_abs = "deny"
forget_non_drop = "deny"
format_in_format_args = "deny"
get_unwrap = "deny"
index_refutable_slice = "deny"
ineffective_open_options = "deny"
infallible_try_from = "deny"
invalid_upcast_comparisons = "deny"
iter_not_returning_iterator = "deny"
join_absolute_paths = "deny"
let_underscore_future = "deny"
let_underscore_lock = "deny"
lines_filter_map_ok = "deny"
lossy_float_literal = "deny"
manual_checked_ops = "warn"
manual_ilog2 = "warn"
manual_take = "warn"
map_err_ignore = "deny"
match_result_ok = "deny"
mem_forget = "deny"
multiple_unsafe_ops_per_block = "deny"
mut_mutex_lock = "deny"
needless_type_cast = "warn"
nonsensical_open_options = "deny"
out_of_bounds_indexing = "deny"
panic = "deny"
path_buf_push_overwrite = "deny"
rc_mutex = "deny"
readonly_write_lock = "deny"
repr_packed_without_abi = "deny"
same_length_and_capacity = "deny"
should_panic_without_expect = "deny"
sliced_string_as_bytes = "deny"
suspicious_open_options = "deny"
to_string_in_format_args = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unnecessary_trailing_comma = "warn"
unreachable = "deny"
unused_format_specs = "deny"
unused_result_ok = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"

[lints.rust]
const_item_interior_mutations = "deny"
function_casts_as_integer = "deny"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"
