Replace `dotenv` with `dotenvy`

v5-api
Dominik Nakamura 2 years ago
parent fc4f1a1d7c
commit 825315b0bf
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

@ -0,0 +1,8 @@
{
"cSpell.words": [
"tungstenite"
],
"files.watcherExclude": {
"**/target/**": true
}
}

@ -36,7 +36,7 @@ tracing = "0.1.34"
[dev-dependencies]
anyhow = "1.0.57"
dotenv = "0.15.0"
dotenvy = "0.15.1"
serde_test = "1.0.137"
tokio = { version = "1.18.2", features = ["fs", "macros", "rt-multi-thread", "time"] }
tracing-subscriber = { version = "0.3.11", features = ["env-filter"] }

@ -12,8 +12,3 @@ expression = "MIT AND ISC AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
]
[bans]
skip = [
{ name = "wasi", version = "0.10.2" },
]

@ -6,7 +6,7 @@ use obws::Client;
#[tokio::main]
async fn main() -> Result<()> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
env::set_var("RUST_LOG", "obws=debug");
tracing_subscriber::fmt::init();

@ -5,7 +5,7 @@ use obws::Client;
#[tokio::main]
async fn main() -> Result<()> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
env::set_var("RUST_LOG", "obws=debug");
tracing_subscriber::fmt::init();

@ -6,7 +6,7 @@ use tokio::fs;
#[tokio::main]
async fn main() -> Result<()> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
env::set_var("RUST_LOG", "obws=debug");
tracing_subscriber::fmt::init();

@ -5,7 +5,7 @@ use obws::Client;
#[tokio::main]
async fn main() -> Result<()> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
env::set_var("RUST_LOG", "obws=debug");
tracing_subscriber::fmt::init();

@ -30,7 +30,7 @@ static INIT: Once = Once::new();
pub async fn new_client() -> Result<Client> {
INIT.call_once(|| {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
tracing_subscriber::fmt::init();
});

Loading…
Cancel
Save