diff --git a/aws-creds/Cargo.toml b/aws-creds/Cargo.toml index ac9511deec..906f3e5219 100644 --- a/aws-creds/Cargo.toml +++ b/aws-creds/Cargo.toml @@ -16,7 +16,7 @@ path = "src/lib.rs" [dependencies] thiserror = "1" -dirs = "5" +home = "0.5" rust-ini = "0.18" attohttpc = { version = "0.24", default-features = false, features = [ "json", diff --git a/aws-creds/src/credentials.rs b/aws-creds/src/credentials.rs index 71554defc9..afe96f89cb 100644 --- a/aws-creds/src/credentials.rs +++ b/aws-creds/src/credentials.rs @@ -368,7 +368,7 @@ impl Credentials { } pub fn from_profile(section: Option<&str>) -> Result { - let home_dir = dirs::home_dir().ok_or(CredentialsError::HomeDir)?; + let home_dir = home::home_dir().ok_or(CredentialsError::HomeDir)?; let profile = format!("{}/.aws/credentials", home_dir.display()); let conf = Ini::load_from_file(profile)?; let section = section.unwrap_or("default");