diff --git a/Cargo.lock b/Cargo.lock index 0bb36ed..9fadbf7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -739,6 +739,12 @@ dependencies = [ "crypto-common", ] +[[package]] +name = "dotenv" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" + [[package]] name = "drain_filter_polyfill" version = "0.1.3" @@ -1455,6 +1461,7 @@ dependencies = [ "actix-web", "cfg-if", "console_error_panic_hook", + "dotenv", "http", "leptos", "leptos_actix", diff --git a/Cargo.toml b/Cargo.toml index 8ff3bbe..3353d63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,6 +23,7 @@ leptos_icons = { version = "0.1.0", default_features = false, features = [ "BsSkipStartFill", "BsSkipEndFill" ] } +dotenv = { version = "0.15.0", optional = true } [features] csr = ["leptos/csr", "leptos_meta/csr", "leptos_router/csr"] @@ -34,6 +35,7 @@ ssr = [ "leptos/ssr", "leptos_meta/ssr", "leptos_router/ssr", + "dotenv", ] # Defines a size-optimized profile for the WASM bundle in release mode