# 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-core"
version = "0.1.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core review engine for diffler: diffs, sessions, comments, viewed marks"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/matheusfillipe/diffler"

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

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

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

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

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

[dependencies.serde_json]
version = "1"

[dependencies.similar]
version = "3"
features = [
    "inline",
    "unicode",
]

[dependencies.syntect]
version = "5.2"
features = ["default-fancy"]
default-features = false

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.two-face]
version = "0.5"
features = ["syntect-default-fancy"]
default-features = false

[dependencies.uuid]
version = "1"
features = ["v4"]

[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
