Skip to content

Commit 90f28e2

Browse files
Merge #65
65: Only require chrono when we actually use it r=jethrogb a=jack-fortanix See #62 Co-authored-by: Jack Lloyd <[email protected]>
2 parents 72f1ae2 + 1681405 commit 90f28e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mbedtls/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ keywords = ["MbedTLS","mbed","TLS","SSL","cryptography"]
1919

2020
[dependencies]
2121
bitflags = "1"
22-
chrono = "0.4"
22+
chrono = { version = "0.4", optional = true }
2323
core_io = { version = "0.1", features = ["collections"], optional = true }
2424
spin = { version = "0.4.0", default-features = false, optional = true }
2525
serde = { version = "1.0.7", default-features = false }
@@ -59,8 +59,8 @@ rust_threading = ["threading", "mbedtls-sys-auto/custom_threading", "std"]
5959
force_aesni_support = ["mbedtls-sys-auto/custom_has_support","mbedtls-sys-auto/aes_alt","aesni"]
6060
rdrand = []
6161
use_libc = ["mbedtls-sys-auto/libc"]
62-
custom_gmtime_r = ["mbedtls-sys-auto/custom_gmtime_r"]
63-
custom_time = ["mbedtls-sys-auto/custom_time"]
62+
custom_gmtime_r = ["mbedtls-sys-auto/custom_gmtime_r", "chrono"]
63+
custom_time = ["mbedtls-sys-auto/custom_time", "chrono"]
6464
aesni = ["mbedtls-sys-auto/aesni"]
6565
zlib = ["mbedtls-sys-auto/zlib"]
6666
time = ["mbedtls-sys-auto/time"]

0 commit comments

Comments
 (0)