Skip to content

Commit 678cdcb

Browse files
committed
Move import behind aws-auth feature flag
1 parent f528c00 commit 678cdcb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/client/csfle/state_machine.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ use tokio::{
1818
};
1919

2020
use crate::{
21-
client::{
22-
auth::aws::get_aws_credentials,
23-
csfle::options::KmsProvidersTlsOptions,
24-
options::ServerAddress,
25-
WeakClient,
26-
},
21+
client::{csfle::options::KmsProvidersTlsOptions, options::ServerAddress, WeakClient},
2722
error::{Error, Result},
2823
operation::{run_command::RunCommand, RawOutput},
2924
options::ReadConcern,
@@ -255,7 +250,10 @@ impl CryptExecutor {
255250
KmsProviderType::Aws => {
256251
#[cfg(feature = "aws-auth")]
257252
{
258-
use crate::client::auth::Credential;
253+
use crate::client::auth::{
254+
aws::get_aws_credentials,
255+
Credential,
256+
};
259257

260258
// Original implementation using the AWS SDK
261259
let aws_creds =

0 commit comments

Comments
 (0)