optimize build
This commit is contained in:
parent
9ccd47afa0
commit
267a8c11c3
9 changed files with 66 additions and 184 deletions
|
@ -6,10 +6,7 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
redis = { version = "0.22.1", features = ["aio", "r2d2", "tokio-comp"] }
|
||||
once_cell = "1.16.0"
|
||||
tokio = { version = "1.23.0", features = ["full"] }
|
||||
tokio = { version = "1.23.0" }
|
||||
sqlx = { version = "0.6.2", features = [ "runtime-tokio-native-tls" , "postgres" ] }
|
||||
lazy_static = "1.4.0"
|
||||
async_once = "0.2.6"
|
||||
dotenvy = "0.15.6"
|
||||
async_once = "0.2.6"
|
|
@ -1,5 +1,4 @@
|
|||
use async_once::AsyncOnce;
|
||||
use dotenvy::dotenv;
|
||||
use lazy_static::lazy_static;
|
||||
use migrations::cmd_migrate;
|
||||
use sqlx::query;
|
||||
|
@ -58,8 +57,6 @@ fn cmd_help() {
|
|||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
dotenv().ok();
|
||||
|
||||
let command = args().nth(1).unwrap_or("help".to_string());
|
||||
|
||||
match command.as_str() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue