Skip to content

Commit 1a0607b

Browse files
authored
Make chrono optional dependency (#1517)
1 parent 26e5a0a commit 1a0607b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dns-resolver = ["dep:hickory-resolver", "dep:hickory-proto"]
4141
cert-key-password = ["dep:pem", "dep:pkcs8"]
4242

4343
# Enable support for MONGODB-AWS authentication.
44-
aws-auth = ["dep:aws-config", "dep:aws-credential-types", "dep:aws-sigv4", "dep:http"]
44+
aws-auth = ["dep:aws-config", "dep:aws-credential-types", "dep:aws-sigv4", "dep:chrono", "dep:http"]
4545

4646
# Enable support for on-demand Azure KMS credentials.
4747
azure-kms = ["dep:reqwest"]
@@ -87,7 +87,7 @@ error-backtrace = []
8787
[dependencies]
8888
base64 = "0.22"
8989
bitflags = "2"
90-
chrono = { version = "0.4.32", default-features = false, features = [
90+
chrono = { version = "0.4.32", default-features = false, optional = true, features = [
9191
"now",
9292
"std",
9393
] }
@@ -217,6 +217,7 @@ features = ["v4"]
217217
anyhow = { version = "1.0", features = ["backtrace"] }
218218
approx = "0.5.1"
219219
backtrace = { version = "0.3.68" }
220+
chrono = { version = "0.4.32", default-features = false, features = ["std"] }
220221
function_name = "0.2.1"
221222
futures = "0.3"
222223
hex = "0.4"

0 commit comments

Comments
 (0)