# 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 believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "tdf_config" version = "0.2.8" authors = ["qiuzhanghua "] description = "TDF config for DB and Redis" homepage = "https://github.com/qiuzhanghua/tdf_config/" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/qiuzhanghua/tdf_config/" [dependencies.async-native-tls] version = "0.3" features = ["runtime-tokio"] default-features = false [dependencies.cfg-if] version = "0.1" [dependencies.chrono] version = "0.4" features = ["serde"] [dependencies.dotenv] version = "0.15" [dependencies.futures] version = "0.3" [dependencies.json] version = "0.12" [dependencies.lazy_static] version = "1.4" [dependencies.mysql] version = "18" optional = true [dependencies.postgres] version = "0.17" optional = true [dependencies.postgres-shared] version = "0.4" optional = true [dependencies.postgres-types] version = "0.1" features = ["with-chrono-0_4"] optional = true [dependencies.r2d2] version = "0.8" optional = true [dependencies.r2d2_redis] version = "0.13" optional = true [dependencies.redis] version = "0.15" optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.sha2] version = "0.8" [dependencies.sqlite] version = "0.25" optional = true [dependencies.sqlx] version = "0.3" features = ["runtime-tokio", "macros", "postgres", "mysql", "sqlite", "uuid", "chrono", "bigdecimal", "json", "ipnetwork", "tls"] default-features = false [dependencies.sqlx-core] version = "0.3" features = ["runtime-tokio"] default-features = false [dependencies.tokio] version = "0.2" features = ["full"] [dependencies.uuid] version = "0.8" features = ["serde", "v4", "v5"] [features] default = ["with-redis"] with-mysql = ["mysql"] with-postgres = ["postgres-shared", "postgres-types"] with-redis = ["r2d2", "redis", "r2d2_redis"]