fix(deps): dotenv -> dotenvy (#1085)

This commit is contained in:
Horu 2022-10-05 22:19:48 +07:00 committed by GitHub
parent 49c1a6d716
commit d9ac2f1509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 24 additions and 24 deletions

View File

@ -14,7 +14,7 @@ actix-files = "0.5"
futures = { version = "^0.3" }
futures-util = { version = "^0.3" }
tera = "1.8.0"
dotenv = "0.15"
dotenvy = "0.15"
listenfd = "0.3.3"
serde = "1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

View File

@ -168,7 +168,7 @@ async fn start() -> std::io::Result<()> {
tracing_subscriber::fmt::init();
// get env vars
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
let db_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file");
let host = env::var("HOST").expect("HOST is not set in .env file");
let port = env::var("PORT").expect("PORT is not set in .env file");

View File

@ -13,7 +13,7 @@ actix-rt = "2.7"
actix-service = "2"
actix-web = "4"
tera = "1.15.0"
dotenv = "0.15"
dotenvy = "0.15"
listenfd = "0.5"
serde = "1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

View File

@ -160,7 +160,7 @@ async fn start() -> std::io::Result<()> {
tracing_subscriber::fmt::init();
// get env vars
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
let db_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file");
let host = env::var("HOST").expect("HOST is not set in .env file");
let port = env::var("PORT").expect("PORT is not set in .env file");

View File

@ -13,7 +13,7 @@ tower = "0.4.12"
tower-http = { version = "0.3.3", features = ["fs"] }
tower-cookies = "0.6.0"
anyhow = "1.0.57"
dotenv = "0.15.0"
dotenvy = "0.15.0"
serde = "1.0.137"
serde_json = "1.0.81"
tera = "1.15.0"

View File

@ -27,7 +27,7 @@ async fn start() -> anyhow::Result<()> {
env::set_var("RUST_LOG", "debug");
tracing_subscriber::fmt::init();
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
let db_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file");
let host = env::var("HOST").expect("HOST is not set in .env file");
let port = env::var("PORT").expect("PORT is not set in .env file");

View File

@ -9,7 +9,7 @@ publish = false
graphql-example-core = { path = "../core" }
tokio = { version = "1.0", features = ["full"] }
axum = "^0.5.1"
dotenv = "0.15.0"
dotenvy = "0.15.0"
async-graphql-axum = "^4.0.6"
entity = { path = "../entity" }
migration = { path = "../migration" }

View File

@ -14,7 +14,7 @@ use axum::{
use graphql::schema::{build_schema, AppSchema};
#[cfg(debug_assertions)]
use dotenv::dotenv;
use dotenvy::dotenv;
async fn graphql_handler(schema: Extension<AppSchema>, req: GraphQLRequest) -> GraphQLResponse {
schema.execute(req.into_inner()).await.into()

View File

@ -9,7 +9,7 @@ name = "migration"
path = "src/lib.rs"
[dependencies]
dotenv = "0.15.0"
dotenvy = "0.15.0"
async-std = { version = "^1", features = ["attributes", "tokio1"] }
[dependencies.sea-orm-migration]

View File

@ -1,7 +1,7 @@
use sea_orm_migration::prelude::*;
#[cfg(debug_assertions)]
use dotenv::dotenv;
use dotenvy::dotenv;
#[async_std::main]
async fn main() {

View File

@ -10,7 +10,7 @@ jsonrpsee = { version = "^0.8.0", features = ["full"] }
jsonrpsee-core = "0.9.0"
tokio = { version = "1.8.0", features = ["full"] }
serde = { version = "1", features = ["derive"] }
dotenv = "0.15"
dotenvy = "0.15"
entity = { path = "../entity" }
migration = { path = "../migration" }
anyhow = "1.0.52"

View File

@ -102,7 +102,7 @@ async fn start() -> std::io::Result<()> {
);
// get env vars
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
let db_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file");
let host = env::var("HOST").expect("HOST is not set in .env file");
let port = env::var("PORT").expect("PORT is not set in .env file");

View File

@ -10,6 +10,6 @@ poem = { version = "1.2.33", features = ["static-files"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1", features = ["derive"] }
tera = "1.8.0"
dotenv = "0.15"
dotenvy = "0.15"
entity = { path = "../entity" }
migration = { path = "../migration" }

View File

@ -126,7 +126,7 @@ async fn start() -> std::io::Result<()> {
tracing_subscriber::fmt::init();
// get env vars
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
let db_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file");
let host = env::var("HOST").expect("HOST is not set in .env file");
let port = env::var("PORT").expect("PORT is not set in .env file");

View File

@ -10,6 +10,6 @@ salvo = { version = "0.27", features = ["affix", "serve-static"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1", features = ["derive"] }
tera = "1.8.0"
dotenv = "0.15"
dotenvy = "0.15"
entity = { path = "../entity" }
migration = { path = "../migration" }

View File

@ -148,7 +148,7 @@ pub async fn main() {
tracing_subscriber::fmt::init();
// get env vars
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
let db_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file");
let host = env::var("HOST").expect("HOST is not set in .env file");
let port = env::var("PORT").expect("PORT is not set in .env file");

View File

@ -11,7 +11,7 @@ publish = false
[dependencies]
tokio = { version = "1.14", features = ["full"] }
anyhow = "1"
dotenv = "0.15"
dotenvy = "0.15"
futures-util = "0.3"
serde = "1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

View File

@ -11,7 +11,7 @@ async fn main() -> anyhow::Result<()> {
env::set_var("RUST_LOG", "debug");
tracing_subscriber::fmt::init();
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
let db_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file");
let db = Database::connect(db_url)
.await

View File

@ -11,7 +11,7 @@ publish = false
[dependencies]
tokio = { version = "1.14", features = ["full"] }
anyhow = "1"
dotenv = "0.15"
dotenvy = "0.15"
futures-util = "0.3"
serde = "1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

View File

@ -32,7 +32,7 @@ required-features = ["codegen"]
[dependencies]
clap = { version = "^3.2", features = ["env", "derive"] }
dotenv = { version = "^0.15" }
dotenvy = { version = "^0.15" }
async-std = { version = "^1.9", features = [ "attributes", "tokio1" ] }
sea-orm-codegen = { version = "^0.10.0", path = "../sea-orm-codegen", optional = true }
sea-schema = { version = "^0.9.3" }

View File

@ -1,5 +1,5 @@
use clap::StructOpt;
use dotenv::dotenv;
use dotenvy::dotenv;
use sea_orm_cli::{handle_error, run_generate_command, run_migrate_command, Cli, Commands};
#[async_std::main]

View File

@ -1,7 +1,7 @@
//! COPY FROM bin/main.rs
use clap::StructOpt;
use dotenv::dotenv;
use dotenvy::dotenv;
use sea_orm_cli::{handle_error, run_generate_command, run_migrate_command, Cli, Commands};
#[async_std::main]

View File

@ -22,7 +22,7 @@ path = "src/lib.rs"
[dependencies]
async-trait = { version = "^0.1" }
clap = { version = "^3.2", features = ["env", "derive"] }
dotenv = { version = "^0.15" }
dotenvy = { version = "^0.15" }
sea-orm = { version = "^0.10.0", path = "../", default-features = false, features = ["macros"] }
sea-orm-cli = { version = "^0.10.0", path = "../sea-orm-cli", default-features = false }
sea-schema = { version = "^0.9.3" }

View File

@ -1,5 +1,5 @@
use clap::Parser;
use dotenv::dotenv;
use dotenvy::dotenv;
use std::{error::Error, fmt::Display, process::exit};
use tracing_subscriber::{prelude::*, EnvFilter};