# 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.64" name = "geo302" version = "0.2.2" description = "A simple geoIP-based redirect proxy" readme = "README.md" keywords = [ "geoIP", "http-proxy", ] categories = ["web-programming::http-server"] license = "MIT" repository = "https://github.com/hombit/geo302" [profile.release] lto = true codegen-units = 1 strip = true [lib] name = "geo302" path = "src/lib.rs" bench = false [[bin]] name = "geo302" path = "src/bin/main.rs" [[bench]] name = "benchmark" path = "benches/lib.rs" harness = false [dependencies.anyhow] version = "1" [dependencies.enum_dispatch] version = "0.3" [dependencies.flate2] version = "1" features = ["rust_backend"] optional = true default_features = false [dependencies.http-serde] version = "1.1" [dependencies.hyper] version = "0.14" features = [ "client", "http1", "server", ] default_features = false [dependencies.hyper-tls] version = "0.5" [dependencies.include_dir] version = "0.7" optional = true [dependencies.lazy_static] version = "1" optional = true [dependencies.log] version = "0.4" features = [ "std", "serde", ] default_features = false [dependencies.maxminddb] version = "0.23" features = ["unsafe-str-decode"] optional = true default_features = false [dependencies.serde] version = "1.0" features = ["derive"] default_features = false [dependencies.simple_logger] version = "4.0" default-features = false [dependencies.smallvec] version = "1.9" features = ["union"] default_features = false [dependencies.tar] version = "0.4" optional = true default_features = false [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" features = [ "rt", "macros", "time", ] default_features = false [dependencies.toml] version = "0.7" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.include_dir] version = "0.7" features = ["glob"] [features] default = [ "maxminddb", "ripe-geo-autoupdate", ] full = [ "maxminddb", "ripe-geo-autoupdate", "ripe-geo-embedded", ] maxminddb = ["dep:maxminddb"] multi-thread = ["tokio/rt-multi-thread"] ripe-geo = [] ripe-geo-autoupdate = [ "dep:flate2", "dep:lazy_static", "dep:tar", "multi-thread", "ripe-geo", ] ripe-geo-embedded = [ "dep:include_dir", "ripe-geo", ]