# 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"
name = "doctrine"
version = "0.15.2"
build = false
include = [
    "/src/**",
    "/web/map/dist/**",
    "/install/**",
    "/plugins/**",
    "/memory/**",
    "/templates/mcp.ts",
    "/README.md",
    "/LICENSE-GPL-3.0",
    "/LICENSE-MIT",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Project tooling CLI"
readme = "README.md"
keywords = [
    "cli",
    "project",
]
categories = ["command-line-utilities"]
license = "GPL-3.0-only"
repository = "https://github.com/davidlee/doctrine"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/doctrine-{ target }.tar.gz"
pkg-fmt = "tgz"
bin-dir = "doctrine"

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

[dependencies.anyhow]
version = "1"

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

[dependencies.axum]
version = "0.8"

[dependencies.base64]
version = "0.22"

[dependencies.bm25]
version = "2.3.2"
default-features = false

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

[dependencies.comfy-table]
version = "7"
features = ["custom_styling"]
default-features = false

[dependencies.cordage]
version = "0.2.0"

[dependencies.crossterm]
version = "0.29"
default-features = false

[dependencies.glob]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.ignore]
version = "0.4.26"

[dependencies.owo-colors]
version = "4"

[dependencies.regex]
version = "1"

[dependencies.regex-lite]
version = "0.1"

[dependencies.rust-embed]
version = "8"
features = ["debug-embed"]

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "parsing",
    "serde",
    "serde-well-known",
]

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

[dependencies.toml]
version = "0.8"

[dependencies.toml_edit]
version = "0.22"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "v5",
    "v7",
    "serde",
]

[dependencies.walkdir]
version = "2"

[dependencies.webbrowser]
version = "1"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.syn]
version = "2"
features = [
    "full",
    "visit",
]

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

[dev-dependencies.tower]
version = "0.5"
features = ["util"]
default-features = false

[dev-dependencies.which]
version = "7"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
as_conversions = "deny"
async_yields_async = "deny"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
checked_conversions = "deny"
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
default_trait_access = "deny"
disallowed_methods = "deny"
disallowed_types = "deny"
enum_glob_use = "deny"
expect_used = "deny"
future_not_send = "deny"
implicit_clone = "deny"
indexing_slicing = "deny"
integer_division = "deny"
large_futures = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
let_underscore_future = "deny"
let_underscore_must_use = "deny"
map_err_ignore = "deny"
missing_const_for_fn = "allow"
module_name_repetitions = "deny"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "deny"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
pub_use = "deny"
redundant_clone = "deny"
return_self_not_must_use = "allow"
same_name_method = "deny"
shadow_unrelated = "deny"
similar_names = "allow"
struct_excessive_bools = "allow"
tests_outside_test_module = "deny"
todo = "deny"
too_many_lines = "allow"
unimplemented = "deny"
unreachable = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
use_debug = "deny"
wildcard_imports = "deny"

[lints.clippy.all]
level = "deny"
priority = -2

[lints.clippy.cargo]
level = "deny"
priority = -2

[lints.clippy.pedantic]
level = "deny"
priority = -2

[lints.rust]
elided_lifetimes_in_paths = "deny"
explicit_outlives_requirements = "deny"
missing_debug_implementations = "deny"
unexpected_cfgs = "deny"
unreachable_pub = "deny"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"
warnings = "deny"

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

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

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

[lints.rust.unused]
level = "deny"
priority = -1
