difflore-cli 0.2.0

Your AI coding agent learned public code, not your team's private decisions. difflore turns past PR reviews into source-backed local rules.
# 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.87"
name = "difflore-cli"
version = "0.2.0"
authors = ["Zachary <hello@difflore.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "difflore"
description = "Your AI coding agent learned public code, not your team's private decisions. difflore turns past PR reviews into source-backed local rules."
homepage = "https://difflore.dev"
documentation = "https://github.com/difflore/difflore-cli"
readme = "README.md"
keywords = [
    "mcp",
    "ai-agent",
    "code-review",
    "claude-code",
    "cursor",
]
categories = [
    "development-tools",
    "command-line-utilities",
]
license = "Apache-2.0"
repository = "https://github.com/difflore/difflore-cli"
resolver = "2"

[package.metadata.wix]
upgrade-guid = "DA86C7A3-D5A4-48E9-92F1-17CC6122AA4C"
path-guid = "B72FEA10-74D1-48FC-9059-26EE114089D6"
license = false
eula = false

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

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

[[bin]]
name = "difflore-hook"
path = "src/bin/difflore-hook.rs"

[[bin]]
name = "difflore-launcher"
path = "src/bin/difflore-launcher.rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "std",
]
default-features = false

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

[dependencies.colored]
version = "3"

[dependencies.difflore-core]
version = "0.2.0"

[dependencies.dirs]
version = "6"

[dependencies.futures-util]
version = "0.3"

[dependencies.gate4agent]
version = "0.2"

[dependencies.globset]
version = "0.4"
default-features = false

[dependencies.interprocess]
version = "2"
features = ["tokio"]

[dependencies.rand]
version = "0.10"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.10"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
    "macros",
]
default-features = false

[dependencies.tempfile]
version = "3"

[dependencies.terminal_size]
version = "0.4"

[dependencies.thiserror]
version = "2"

[dependencies.tiny_http]
version = "0.12"

[dependencies.tokio]
version = "1"
features = [
    "fs",
    "io-std",
    "io-util",
    "macros",
    "net",
    "process",
    "rt-multi-thread",
    "signal",
    "sync",
    "time",
]
default-features = false

[dependencies.toml]
version = "0.8"

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

[dependencies.webbrowser]
version = "1"

[dependencies.which]
version = "8"

[dev-dependencies]

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_Threading",
]

[lints.clippy]
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
cognitive_complexity = "allow"
dbg_macro = "deny"
doc_markdown = "allow"
exit = "warn"
expect_used = "warn"
fn_params_excessive_bools = "allow"
format_push_string = "allow"
future_not_send = "allow"
imprecise_flops = "warn"
inefficient_to_string = "warn"
items_after_statements = "allow"
large_stack_arrays = "warn"
lossy_float_literal = "deny"
match_wildcard_for_single_variants = "warn"
mem_forget = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
mutex_atomic = "warn"
needless_pass_by_value = "warn"
no_effect_underscore_binding = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
panic = "warn"
print_stderr = "allow"
print_stdout = "allow"
redundant_pub_crate = "allow"
rest_pat_in_fully_bound_structs = "deny"
return_self_not_must_use = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
str_to_string = "warn"
string_lit_as_bytes = "warn"
struct_excessive_bools = "allow"
suboptimal_flops = "warn"
todo = "deny"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
unimplemented = "deny"
unused_async = "allow"
unwrap_used = "deny"
verbose_file_reads = "deny"
wildcard_imports = "allow"

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

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

[lints.rust]
trivial_numeric_casts = "warn"
unsafe_code = "deny"
unused_qualifications = "warn"

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