From e559259686f984fdcce5669f0ab8c6dc27d76077 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 27 Oct 2021 06:27:13 +0300 Subject: Deprecated Redis backend and added a database migration tool (untested, beware) --- Cargo.toml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 66e9043..cb289c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,8 @@ authors = ["Vika "] 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"] -- cgit 1.4.1