# 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 = "2021"
rust-version = "1.89"
name = "meow-api"
version = "0.15.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "REST API server (Axum) for the meow-rs proxy kernel."
homepage = "https://madeye.github.io/meow-rs/"
readme = false
license = "GPL-3.0"
repository = "https://github.com/madeye/meow-rs"

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

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

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

[dependencies.axum]
version = "0.8"
features = ["ws"]

[dependencies.base64]
version = "0.22"

[dependencies.dashmap]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.meow-common]
version = "0.15.0"

[dependencies.meow-config]
version = "0.15.0"
default-features = false

[dependencies.meow-dns]
version = "0.15.0"
default-features = false

[dependencies.meow-proxy]
version = "0.15.0"
default-features = false

[dependencies.meow-rules]
version = "0.15.0"

[dependencies.meow-tunnel]
version = "0.15.0"

[dependencies.parking_lot]
version = "0.12"

[dependencies.prometheus-client]
version = "0.22"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.subtle]
version = "2"

[dependencies.sysinfo]
version = "0.32"

[dependencies.time]
version = "0.3"
features = ["formatting"]

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

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "fs",
]

[dependencies.tracing]
version = "0.1"

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

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

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

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

[dev-dependencies.meow-trie]
version = "0.15.0"

[dev-dependencies.smallvec]
version = "1"
features = [
    "union",
    "serde",
]

[dev-dependencies.smol_str]
version = "0.3"
features = ["serde"]

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

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tokio-tungstenite]
version = "0.29"
features = [
    "connect",
    "handshake",
]
default-features = false

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

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[lints.clippy]
clone_on_ref_ptr = "deny"
cloned_instead_of_copied = "warn"
explicit_iter_loop = "warn"
format_push_string = "deny"
if_not_else = "warn"
large_enum_variant = "deny"
large_types_passed_by_value = "deny"
manual_let_else = "warn"
map_unwrap_or = "warn"
match_same_arms = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
needless_collect = "deny"
needless_pass_by_value = "warn"
redundant_clone = "deny"
redundant_closure = "warn"
redundant_closure_for_method_calls = "warn"
semicolon_if_nothing_returned = "warn"
string_add = "deny"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "warn"
unnecessary_box_returns = "deny"
unnecessary_wraps = "warn"
useless_format = "deny"
vec_init_then_push = "deny"
