Skip to content

Commit

Permalink
Only use once_cell dependency when required to fix builds for no-std …
Browse files Browse the repository at this point in the history
…targets
  • Loading branch information
DrTobe committed Jul 18, 2023
1 parent 5c18def commit 73ae14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mbedtls-platform-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ links = "mbedtls-platform-support"
cfg-if = "1.0.0"
spin = { version = "0.4.0", default-features = false, optional = true }
chrono = { version = "0.4", optional = true }
once_cell = "1.17.1"
once_cell = { version = "1.17.1", optional = true }

[target.x86_64-fortanix-unknown-sgx.dependencies]
chrono = "0.4"
Expand All @@ -42,5 +42,5 @@ time = ["mbedtls-sys-auto/time"]
std = ["mbedtls-sys-auto/std"]
force_aesni_support = ["mbedtls-sys-auto/custom_has_support", "mbedtls-sys-auto/aes_alt", "aesni"]
aesni = ["mbedtls-sys-auto/aesni"]
tls13 = ["mbedtls-sys-auto/tls13"]
tls13 = ["mbedtls-sys-auto/tls13", "once_cell"]
rdrand = []

0 comments on commit 73ae14b

Please sign in to comment.