difflore-core 0.2.0

Core library for the difflore CLI — rule store, retrieval, MCP server, hooks, cloud sync. Not intended for direct use; depend on `difflore-cli` instead.
# 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-core"
version = "0.2.0"
authors = ["Zachary <hello@difflore.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for the difflore CLI — rule store, retrieval, MCP server, hooks, cloud sync. Not intended for direct use; depend on `difflore-cli` instead."
homepage = "https://difflore.dev"
documentation = "https://github.com/difflore/difflore-cli"
readme = "README.md"
keywords = [
    "mcp",
    "ai-agent",
    "code-review",
    "rules",
    "claude",
]
categories = [
    "development-tools",
    "database",
]
license = "Apache-2.0"
repository = "https://github.com/difflore/difflore-cli"
resolver = "2"

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

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

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

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

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

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

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

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

[dependencies.aes-gcm]
version = "0.10"

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

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

[dependencies.dirs]
version = "6"

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

[dependencies.gate4agent]
version = "0.2"

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

[dependencies.hnsw_rs]
version = "0.3"

[dependencies.keyring]
version = "3"
features = [
    "apple-native",
    "windows-native",
    "sync-secret-service",
    "crypto-rust",
]

[dependencies.libc]
version = "0.2"

[dependencies.md-5]
version = "0.10"

[dependencies.openapi-contract]
version = "0.1"

[dependencies.rand]
version = "0.10"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.11"

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

[dependencies.thiserror]
version = "2"

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

[dependencies.unicode-segmentation]
version = "1"

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

[dependencies.which]
version = "8"

[dev-dependencies.temp-env]
version = "0.3"

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

[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