[package]
edition = "2024"
rust-version = "1.87"
name = "difflore-cli"
version = "0.1.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, taught by your team's PR reviews — a local-first, open-source MCP server that turns past review comments into rules your agent follows automatically."
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
[package.metadata.dist]
formula = "difflore"
[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"
[[test]]
name = "hook_dedup_skip"
path = "tests/hook_dedup_skip.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.1.0"
[dependencies.difflore-tui]
version = "0.1.0"
[dependencies.dirs]
version = "6"
[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.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.tower-lsp]
version = "0.20"
[dependencies.webbrowser]
version = "1"
[dependencies.which]
version = "8"
[dev-dependencies]
[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"
[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