Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix builds and add CI check for no-std targets #300

Closed
wants to merge 8 commits into from
19 changes: 19 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 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", default-features = false }

[target.x86_64-fortanix-unknown-sgx.dependencies]
chrono = "0.4"
Expand All @@ -39,7 +39,8 @@ cc = "1.0"

[features]
time = ["mbedtls-sys-auto/time"]
std = ["mbedtls-sys-auto/std"]
std = ["mbedtls-sys-auto/std", "once_cell/std"]
no_std_deps = ["spin", "once_cell/critical-section"]
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"]
Expand Down
2 changes: 1 addition & 1 deletion mbedtls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cc = "1.0"
default = ["std", "aesni", "time", "padlock"]
std = ["byteorder/std", "mbedtls-sys-auto/std", "serde/std", "yasna", "mbedtls-platform-support/std"]
debug = ["mbedtls-sys-auto/debug"]
no_std_deps = ["mbedtls-platform-support/spin", "serde/alloc"]
no_std_deps = ["mbedtls-platform-support/no_std_deps", "serde/alloc"]
force_aesni_support = ["mbedtls-platform-support/force_aesni_support", "aesni"]
mpi_force_c_code = ["mbedtls-sys-auto/mpi_force_c_code"]
rdrand = ["mbedtls-platform-support/rdrand"]
Expand Down