fix(deps): dotenv -> dotenvy (#1085)
This commit is contained in:
parent
49c1a6d716
commit
d9ac2f1509
@ -14,7 +14,7 @@ actix-files = "0.5"
|
|||||||
futures = { version = "^0.3" }
|
futures = { version = "^0.3" }
|
||||||
futures-util = { version = "^0.3" }
|
futures-util = { version = "^0.3" }
|
||||||
tera = "1.8.0"
|
tera = "1.8.0"
|
||||||
dotenv = "0.15"
|
dotenvy = "0.15"
|
||||||
listenfd = "0.3.3"
|
listenfd = "0.3.3"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
@ -168,7 +168,7 @@ async fn start() -> std::io::Result<()> {
|
|||||||
tracing_subscriber::fmt::init();
|
tracing_subscriber::fmt::init();
|
||||||
|
|
||||||
// get env vars
|
// 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 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 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");
|
let port = env::var("PORT").expect("PORT is not set in .env file");
|
||||||
|
@ -13,7 +13,7 @@ actix-rt = "2.7"
|
|||||||
actix-service = "2"
|
actix-service = "2"
|
||||||
actix-web = "4"
|
actix-web = "4"
|
||||||
tera = "1.15.0"
|
tera = "1.15.0"
|
||||||
dotenv = "0.15"
|
dotenvy = "0.15"
|
||||||
listenfd = "0.5"
|
listenfd = "0.5"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
@ -160,7 +160,7 @@ async fn start() -> std::io::Result<()> {
|
|||||||
tracing_subscriber::fmt::init();
|
tracing_subscriber::fmt::init();
|
||||||
|
|
||||||
// get env vars
|
// 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 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 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");
|
let port = env::var("PORT").expect("PORT is not set in .env file");
|
||||||
|
@ -13,7 +13,7 @@ tower = "0.4.12"
|
|||||||
tower-http = { version = "0.3.3", features = ["fs"] }
|
tower-http = { version = "0.3.3", features = ["fs"] }
|
||||||
tower-cookies = "0.6.0"
|
tower-cookies = "0.6.0"
|
||||||
anyhow = "1.0.57"
|
anyhow = "1.0.57"
|
||||||
dotenv = "0.15.0"
|
dotenvy = "0.15.0"
|
||||||
serde = "1.0.137"
|
serde = "1.0.137"
|
||||||
serde_json = "1.0.81"
|
serde_json = "1.0.81"
|
||||||
tera = "1.15.0"
|
tera = "1.15.0"
|
||||||
|
@ -27,7 +27,7 @@ async fn start() -> anyhow::Result<()> {
|
|||||||
env::set_var("RUST_LOG", "debug");
|
env::set_var("RUST_LOG", "debug");
|
||||||
tracing_subscriber::fmt::init();
|
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_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 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");
|
let port = env::var("PORT").expect("PORT is not set in .env file");
|
||||||
|
@ -9,7 +9,7 @@ publish = false
|
|||||||
graphql-example-core = { path = "../core" }
|
graphql-example-core = { path = "../core" }
|
||||||
tokio = { version = "1.0", features = ["full"] }
|
tokio = { version = "1.0", features = ["full"] }
|
||||||
axum = "^0.5.1"
|
axum = "^0.5.1"
|
||||||
dotenv = "0.15.0"
|
dotenvy = "0.15.0"
|
||||||
async-graphql-axum = "^4.0.6"
|
async-graphql-axum = "^4.0.6"
|
||||||
entity = { path = "../entity" }
|
entity = { path = "../entity" }
|
||||||
migration = { path = "../migration" }
|
migration = { path = "../migration" }
|
||||||
|
@ -14,7 +14,7 @@ use axum::{
|
|||||||
use graphql::schema::{build_schema, AppSchema};
|
use graphql::schema::{build_schema, AppSchema};
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
use dotenv::dotenv;
|
use dotenvy::dotenv;
|
||||||
|
|
||||||
async fn graphql_handler(schema: Extension<AppSchema>, req: GraphQLRequest) -> GraphQLResponse {
|
async fn graphql_handler(schema: Extension<AppSchema>, req: GraphQLRequest) -> GraphQLResponse {
|
||||||
schema.execute(req.into_inner()).await.into()
|
schema.execute(req.into_inner()).await.into()
|
||||||
|
@ -9,7 +9,7 @@ name = "migration"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
dotenv = "0.15.0"
|
dotenvy = "0.15.0"
|
||||||
async-std = { version = "^1", features = ["attributes", "tokio1"] }
|
async-std = { version = "^1", features = ["attributes", "tokio1"] }
|
||||||
|
|
||||||
[dependencies.sea-orm-migration]
|
[dependencies.sea-orm-migration]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use sea_orm_migration::prelude::*;
|
use sea_orm_migration::prelude::*;
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
use dotenv::dotenv;
|
use dotenvy::dotenv;
|
||||||
|
|
||||||
#[async_std::main]
|
#[async_std::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
|
@ -10,7 +10,7 @@ jsonrpsee = { version = "^0.8.0", features = ["full"] }
|
|||||||
jsonrpsee-core = "0.9.0"
|
jsonrpsee-core = "0.9.0"
|
||||||
tokio = { version = "1.8.0", features = ["full"] }
|
tokio = { version = "1.8.0", features = ["full"] }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
dotenv = "0.15"
|
dotenvy = "0.15"
|
||||||
entity = { path = "../entity" }
|
entity = { path = "../entity" }
|
||||||
migration = { path = "../migration" }
|
migration = { path = "../migration" }
|
||||||
anyhow = "1.0.52"
|
anyhow = "1.0.52"
|
||||||
|
@ -102,7 +102,7 @@ async fn start() -> std::io::Result<()> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// get env vars
|
// 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 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 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");
|
let port = env::var("PORT").expect("PORT is not set in .env file");
|
||||||
|
@ -10,6 +10,6 @@ poem = { version = "1.2.33", features = ["static-files"] }
|
|||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
tera = "1.8.0"
|
tera = "1.8.0"
|
||||||
dotenv = "0.15"
|
dotenvy = "0.15"
|
||||||
entity = { path = "../entity" }
|
entity = { path = "../entity" }
|
||||||
migration = { path = "../migration" }
|
migration = { path = "../migration" }
|
||||||
|
@ -126,7 +126,7 @@ async fn start() -> std::io::Result<()> {
|
|||||||
tracing_subscriber::fmt::init();
|
tracing_subscriber::fmt::init();
|
||||||
|
|
||||||
// get env vars
|
// 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 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 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");
|
let port = env::var("PORT").expect("PORT is not set in .env file");
|
||||||
|
@ -10,6 +10,6 @@ salvo = { version = "0.27", features = ["affix", "serve-static"] }
|
|||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
tera = "1.8.0"
|
tera = "1.8.0"
|
||||||
dotenv = "0.15"
|
dotenvy = "0.15"
|
||||||
entity = { path = "../entity" }
|
entity = { path = "../entity" }
|
||||||
migration = { path = "../migration" }
|
migration = { path = "../migration" }
|
||||||
|
@ -148,7 +148,7 @@ pub async fn main() {
|
|||||||
tracing_subscriber::fmt::init();
|
tracing_subscriber::fmt::init();
|
||||||
|
|
||||||
// get env vars
|
// 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 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 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");
|
let port = env::var("PORT").expect("PORT is not set in .env file");
|
||||||
|
@ -11,7 +11,7 @@ publish = false
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { version = "1.14", features = ["full"] }
|
tokio = { version = "1.14", features = ["full"] }
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
dotenv = "0.15"
|
dotenvy = "0.15"
|
||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
@ -11,7 +11,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
env::set_var("RUST_LOG", "debug");
|
env::set_var("RUST_LOG", "debug");
|
||||||
tracing_subscriber::fmt::init();
|
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_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file");
|
||||||
let db = Database::connect(db_url)
|
let db = Database::connect(db_url)
|
||||||
.await
|
.await
|
||||||
|
@ -11,7 +11,7 @@ publish = false
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { version = "1.14", features = ["full"] }
|
tokio = { version = "1.14", features = ["full"] }
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
dotenv = "0.15"
|
dotenvy = "0.15"
|
||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
@ -32,7 +32,7 @@ required-features = ["codegen"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "^3.2", features = ["env", "derive"] }
|
clap = { version = "^3.2", features = ["env", "derive"] }
|
||||||
dotenv = { version = "^0.15" }
|
dotenvy = { version = "^0.15" }
|
||||||
async-std = { version = "^1.9", features = [ "attributes", "tokio1" ] }
|
async-std = { version = "^1.9", features = [ "attributes", "tokio1" ] }
|
||||||
sea-orm-codegen = { version = "^0.10.0", path = "../sea-orm-codegen", optional = true }
|
sea-orm-codegen = { version = "^0.10.0", path = "../sea-orm-codegen", optional = true }
|
||||||
sea-schema = { version = "^0.9.3" }
|
sea-schema = { version = "^0.9.3" }
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use clap::StructOpt;
|
use clap::StructOpt;
|
||||||
use dotenv::dotenv;
|
use dotenvy::dotenv;
|
||||||
use sea_orm_cli::{handle_error, run_generate_command, run_migrate_command, Cli, Commands};
|
use sea_orm_cli::{handle_error, run_generate_command, run_migrate_command, Cli, Commands};
|
||||||
|
|
||||||
#[async_std::main]
|
#[async_std::main]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! COPY FROM bin/main.rs
|
//! COPY FROM bin/main.rs
|
||||||
|
|
||||||
use clap::StructOpt;
|
use clap::StructOpt;
|
||||||
use dotenv::dotenv;
|
use dotenvy::dotenv;
|
||||||
use sea_orm_cli::{handle_error, run_generate_command, run_migrate_command, Cli, Commands};
|
use sea_orm_cli::{handle_error, run_generate_command, run_migrate_command, Cli, Commands};
|
||||||
|
|
||||||
#[async_std::main]
|
#[async_std::main]
|
||||||
|
@ -22,7 +22,7 @@ path = "src/lib.rs"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
async-trait = { version = "^0.1" }
|
async-trait = { version = "^0.1" }
|
||||||
clap = { version = "^3.2", features = ["env", "derive"] }
|
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 = { 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-orm-cli = { version = "^0.10.0", path = "../sea-orm-cli", default-features = false }
|
||||||
sea-schema = { version = "^0.9.3" }
|
sea-schema = { version = "^0.9.3" }
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use dotenv::dotenv;
|
use dotenvy::dotenv;
|
||||||
use std::{error::Error, fmt::Display, process::exit};
|
use std::{error::Error, fmt::Display, process::exit};
|
||||||
use tracing_subscriber::{prelude::*, EnvFilter};
|
use tracing_subscriber::{prelude::*, EnvFilter};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user