# 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"
name = "upstream-module"
version = "0.2.0"
authors = ["Wladimir Palant"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A helper module to configure Pingora's upstream selection.
"""
readme = "README.md"
keywords = [
    "proxy",
    "reverse-proxy",
    "web-server",
    "http",
    "pingora",
]
categories = [
    "network-programming",
    "web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/palant/pingora-utils"

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

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

[dependencies.http]
version = "1.0.0"

[dependencies.log]
version = "0.4"

[dependencies.module-utils]
version = "0.2.0"

[dependencies.pingora-core]
version = "0.2.0"

[dependencies.pingora-proxy]
version = "0.2.0"

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

[dependencies.structopt]
version = "0.3"

[lints.clippy]
dbg_macro = "warn"
empty_enum = "warn"
enum_glob_use = "warn"
exit = "warn"
filter_map_next = "warn"
fn_params_excessive_bools = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
match_on_vec_items = "warn"
mem_forget = "warn"
needless_continue = "warn"
option_option = "warn"
rest_pat_in_fully_bound_structs = "warn"
str_to_string = "warn"
suboptimal_flops = "warn"
todo = "warn"
unnested_or_patterns = "warn"
unused_self = "warn"
verbose_file_reads = "warn"

[lints.rust]
elided_lifetimes_in_paths = "deny"
explicit_outlives_requirements = "deny"
keyword_idents = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_debug_implementations = "deny"
missing_docs = "warn"
non_ascii_idents = "deny"
rust_2018_idioms = "deny"
single_use_lifetimes = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "deny"
unsafe_code = "forbid"
unstable_features = "deny"
unused_import_braces = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "deny"