diff --git a/Cargo.lock b/Cargo.lock index c6e155b..a726130 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -755,10 +755,10 @@ dependencies = [ ] [[package]] -name = "dotenv" -version = "0.15.0" +name = "dotenvy" +version = "0.15.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" +checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "drain_filter_polyfill" @@ -1841,7 +1841,7 @@ dependencies = [ "console_error_panic_hook", "diesel", "diesel_migrations", - "dotenv", + "dotenvy", "flexi_logger", "http 1.1.0", "icondata", diff --git a/Cargo.toml b/Cargo.toml index b4be217..1f30a39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,6 @@ leptos_router = { version = "0.6", features = ["nightly"] } wasm-bindgen = { version = "=0.2.95", default-features = false, optional = true } leptos_icons = { version = "0.3.0" } icondata = { version = "0.3.0" } -dotenv = { version = "0.15.0", optional = true } diesel = { version = "2.1.4", features = ["postgres", "r2d2", "chrono"], default-features = false, optional = true } lazy_static = { version = "1.4.0", optional = true } serde = { version = "1.0.195", features = ["derive"], default-features = false } @@ -42,6 +41,7 @@ web-sys = "0.3.69" leptos-use = "0.13.5" image-convert = { version = "0.18.0", optional = true, default-features = false } chrono = { version = "0.4.38", default-features = false, features = ["serde", "clock"] } +dotenvy = { version = "0.15.7", optional = true } [features] hydrate = [ @@ -57,7 +57,7 @@ ssr = [ "leptos/ssr", "leptos_meta/ssr", "leptos_router/ssr", - "dotenv", + "dotenvy", "diesel", "lazy_static", "openssl", diff --git a/src/main.rs b/src/main.rs index a4efbee..25a5a61 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,7 @@ async fn main() { info!("\n{}", include_str!("../ascii_art.txt")); info!("Starting Leptos server..."); - use dotenv::dotenv; + use dotenvy::dotenv; dotenv().ok(); debug!("Running database migrations...");