# 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.88"
name = "diffler"
version = "0.2.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal code review for AI coding agents"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/matheusfillipe/diffler"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
pkg-fmt = "tgz"
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

[package.metadata.binstall.overrides.aarch64-pc-windows-msvc]
pkg-fmt = "zip"

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

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

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

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

[dependencies.async-lsp]
version = "0.2"
features = ["tokio"]

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"

[dependencies.clap]
version = "4.6"
features = ["derive"]

[dependencies.color-eyre]
version = "0.6"

[dependencies.crossterm]
version = "0.29"
features = ["event-stream"]

[dependencies.diffler-core]
version = "0.2.5"

[dependencies.futures-util]
version = "0.3"
default-features = false

[dependencies.notify]
version = "8.2"

[dependencies.notify-debouncer-full]
version = "0.7"

[dependencies.ratatui]
version = "0.30"

[dependencies.rmcp]
version = "1"
features = [
    "server",
    "transport-streamable-http-server",
]

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

[dependencies.serde_ignored]
version = "0.1"

[dependencies.serde_json]
version = "1"

[dependencies.serde_norway]
version = "0.9"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "parsing",
]

[dependencies.tokio]
version = "1.52"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "process",
    "io-util",
    "net",
]

[dependencies.toml]
version = "1"

[dependencies.unicode-width]
version = "0.2"

[dev-dependencies.git2]
version = "0.21"
features = ["vendored-libgit2"]
default-features = false

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

[dev-dependencies.rmcp]
version = "1"
features = [
    "server",
    "transport-streamable-http-server",
    "client",
    "transport-streamable-http-client-reqwest",
]

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1.52"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "process",
    "io-util",
    "net",
    "test-util",
]

[lints.clippy]
cast_possible_truncation = "allow"
dbg_macro = "deny"
expect_used = "warn"
indexing_slicing = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "warn"
print_stdout = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
