# 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.88"
name = "llama-crab-server"
version = "0.1.6"
authors = ["llama-crab contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP server for llama-crab"
homepage = "https://llama-crab.nlp.rocks/"
readme = "README.md"
license = "MIT"
repository = "https://github.com/DominguesM/llama-crab"

[features]
default = []
hf-hub = ["llama-crab/hf-hub"]
mtmd = ["llama-crab/mtmd"]

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

[dependencies.axum]
version = "0.7"

[dependencies.base64]
version = "0.22"

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

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

[dependencies.llama-crab]
version = "0.1.5"
features = [
    "common",
    "hf-hub",
]

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

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "sync",
]

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

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

[dependencies.tracing]
version = "0.1"

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

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
manual_let_else = "allow"
match_same_arms = "allow"
match_wild_err_arm = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_collect = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
redundant_closure = "allow"
result_large_err = "allow"
similar_names = "allow"
single_match = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
use_self = "allow"
useless_format = "allow"
wrong_self_convention = "allow"

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

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "warn"

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