diff options
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Cargo.toml b/Cargo.toml index 66e9043..cb289c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,8 @@ authors = ["Vika <vika@fireburn.ru>"] edition = "2018" [features] -default = ["util"] +default = ["util", "redis"] util = ["anyhow"] -redis = ["mobc", "mobc-redis"] [[bin]] name = "kittybox-bulk-import" @@ -18,6 +17,12 @@ required-features = ["util"] name = "pyindieblog-export" path = "src/bin/pyindieblog_to_kittybox.rs" required-features = ["util", "redis"] + +[[bin]] +name = "kittybox-database-converter" +path = "src/bin/kittybox_database_converter.rs" +required-features = ["util", "redis"] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dev-dependencies] @@ -55,14 +60,10 @@ features = ["attributes", "unstable"] [dependencies.chrono] # Date and time library for Rust version = "^0.4.19" features = ["serde"] -[dependencies.mobc] # A generic connection pool with async/await support -version = "^0.7.2" -optional = true -[dependencies.mobc-redis] # Redis support for the mobc connection pool -version = "^0.7.0" +[dependencies.redis] +version = "^0.21.3" optional = true -features = ["async-std-comp"] -default-features = false +features = ["aio", "async-std-comp"] [dependencies.prometheus] # Prometheus instrumentation library for Rust applications version = "^0.12.0" features = ["process"] |