diff --git a/Cargo.toml b/Cargo.toml index 54170160..6b2d0465 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ async-stream = { version = "0.3.2", optional = true } async-trait = { version = "0.1.51", optional = true } base64 = "0.21.2" chrono = { version = "0.4.19", features = ["serde"] } -dotenv = { version = "0.15.0", optional = true } +dotenvy = { version = "0.15.0", optional = true } futures = { version = "0.3.17", optional = true } getrandom = "0.2.3" log = "0.4.14" @@ -56,7 +56,7 @@ default = ["client-reqwest", "reqwest-default-tls"] ### Client ### cli = ["webbrowser"] -env-file = ["dotenv"] +env-file = ["dotenvy"] ### HTTP ### # Available clients. By default they don't include a TLS so that it can be @@ -80,7 +80,7 @@ __sync = ["maybe-async/is_sync"] [package.metadata.docs.rs] # When generating the docs, we also want to include the CLI methods, and working -# links for `dotenv`. We generate them for ureq so that the function signatures +# links for `dotenvy`. We generate them for ureq so that the function signatures # of the endpoints don't look gnarly (because of `async-trait`). features = ["cli", "env-file", "client-ureq"] no-default-features = true diff --git a/src/lib.rs b/src/lib.rs index 1bda9452..c7db9463 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,7 @@ //! //! ### Environmental variables //! -//! RSpotify supports the `dotenv` crate, which allows you to save credentials +//! RSpotify supports the `dotenvy` crate, which allows you to save credentials //! in a `.env` file. These will then be automatically available as //! environmental values when using methods like [`Credentials::from_env`]. //! @@ -367,7 +367,7 @@ impl Credentials { pub fn from_env() -> Option { #[cfg(feature = "env-file")] { - dotenv::dotenv().ok(); + dotenvy::dotenv().ok(); } Some(Self { @@ -422,7 +422,7 @@ impl OAuth { pub fn from_env(scopes: HashSet) -> Option { #[cfg(feature = "env-file")] { - dotenv::dotenv().ok(); + dotenvy::dotenv().ok(); } Some(Self {