# 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 = "circus-server"
version = "0.13.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP server for Circus"
readme = false
license = "MPL-2.0"
repository = "https://github.com/manic-systems/circus"

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

[[bin]]
name = "circus-server"
path = "src/main.rs"

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

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

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

[dependencies.askama]
version = "0.16.0"

[dependencies.async-compression]
version = "0.4.42"
features = [
    "tokio",
    "zstd",
    "xz",
    "gzip",
]
default-features = false

[dependencies.async-stream]
version = "0.3.6"

[dependencies.axum]
version = "0.8.9"

[dependencies.axum-extra]
version = "0.12.6"
features = [
    "typed-header",
    "cookie",
    "cookie",
]

[dependencies.base64]
version = "0.22.1"

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

[dependencies.circus-binary-cache]
version = "0.13.0"

[dependencies.circus-common]
version = "0.13.0"

[dependencies.circus-config]
version = "0.13.0"

[dependencies.circus-nix]
version = "0.13.0"

[dependencies.circus-notification]
version = "0.13.0"

[dependencies.circus-proto]
version = "0.13.0"

[dependencies.circus-s3]
version = "0.13.0"

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

[dependencies.color-eyre]
version = "0.6.5"

[dependencies.config]
version = "0.15.23"

[dependencies.dashmap]
version = "6.2.1"

[dependencies.futures]
version = "0.3.32"

[dependencies.hex]
version = "0.4.3"

[dependencies.hmac]
version = "0.13.0"

[dependencies.ldap3]
version = "0.12.1"
features = [
    "tls-rustls",
    "tls-rustls-ring",
]
default-features = false

[dependencies.moka]
version = "0.12.11"
features = ["sync"]

[dependencies.oauth2]
version = "5.0.0"

[dependencies.regex]
version = "1.12.3"

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

[dependencies.ring]
version = "0.17.14"

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.serde_path_to_error]
version = "0.1.20"

[dependencies.sha2]
version = "0.11.0"

[dependencies.sqlx]
version = "0.9.0"
features = [
    "runtime-tokio",
    "tls-rustls",
    "postgres",
    "chrono",
    "uuid",
    "migrate",
    "sqlite",
]

[dependencies.strip-ansi-escapes]
version = "0.2.1"

[dependencies.subtle]
version = "2.6.1"

[dependencies.tar]
version = "0.4.46"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.time]
version = "0.3.47"

[dependencies.tokio]
version = "1.52.3"
features = ["full"]

[dependencies.tokio-util]
version = "0.7.18"
features = [
    "io",
    "compat",
]

[dependencies.toml]
version = "1.1.2"

[dependencies.tower]
version = "0.5.3"

[dependencies.tower-http]
version = "0.7.0"
features = [
    "cors",
    "trace",
    "limit",
    "fs",
    "set-header",
]

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = [
    "env-filter",
    "json",
]

[dependencies.utoipa]
version = "5.5.0"

[dependencies.uuid]
version = "1.23.2"
features = [
    "v4",
    "serde",
]

[dev-dependencies.serde_urlencoded]
version = "0.7"

[dev-dependencies.tower]
version = "0.5.3"

[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cargo_common_metadata = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
filetype_is_file = "warn"
get_unwrap = "warn"
implicit_return = "allow"
infinite_loop = "warn"
map_with_unused_argument_over_ranges = "warn"
missing_docs_in_private_items = "allow"
multiple_crate_versions = "allow"
non_ascii_literal = "allow"
non_std_lazy_statics = "warn"
panic = "deny"
pathbuf_init_then_push = "warn"
pattern_type_mismatch = "allow"
print_stderr = "warn"
print_stdout = "warn"
question_mark_used = "allow"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
single_call_fn = "allow"
std_instead_of_core = "allow"
todo = "warn"
too_long_first_doc_paragraph = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unreachable = "warn"
unused_result_ok = "warn"
unused_trait_names = "allow"
unwrap_used = "deny"

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

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

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

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

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

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