-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add CI for windows build with only `std` feature * fix windows build * bump version
- Loading branch information
Showing
3 changed files
with
39 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "mbedtls" | ||
# We jumped from v0.9 to v0.12 because v0.10 and v0.11 were based on mbedtls 3.X, which | ||
# we decided not to support. | ||
version = "0.12.0" | ||
version = "0.12.1" | ||
authors = ["Jethro Beekman <[email protected]>"] | ||
build = "build.rs" | ||
edition = "2018" | ||
|
@@ -17,14 +17,17 @@ environment.""" | |
readme = "../README.md" | ||
repository = "https://github.com/fortanix/rust-mbedtls" | ||
documentation = "https://docs.rs/mbedtls/" | ||
keywords = ["MbedTLS","mbed","TLS","SSL","cryptography"] | ||
keywords = ["MbedTLS", "mbed", "TLS", "SSL", "cryptography"] | ||
|
||
[dependencies] | ||
bitflags = "1" | ||
serde = { version = "1.0.7", default-features = false, features = ["alloc"] } | ||
serde_derive = "1.0.7" | ||
byteorder = { version = "1.0.0", default-features = false } | ||
yasna = { version = "0.2", optional = true, features = ["num-bigint", "bit-vec"] } | ||
yasna = { version = "0.2", optional = true, features = [ | ||
"num-bigint", | ||
"bit-vec", | ||
] } | ||
num-bigint = { version = "0.2", optional = true } | ||
bit-vec = { version = "0.5", optional = true } | ||
cbc = { version = "0.1.2", optional = true } | ||
|
@@ -33,18 +36,15 @@ cfg-if = "1.0.0" | |
tokio = { version = "1.16.1", optional = true } | ||
chrono = { version = "0.4", optional = true } | ||
|
||
[target.x86_64-fortanix-unknown-sgx.dependencies] | ||
rs-libc = "0.2.0" | ||
mbedtls-sys-auto = { path = "../mbedtls-sys", version = "2.25.0", default-features = false, features = [ | ||
"trusted_cert_callback", | ||
"threading", | ||
] } | ||
|
||
[dependencies.mbedtls-sys-auto] | ||
version = "2.25.0" | ||
default-features = false | ||
features = ["trusted_cert_callback", "threading"] | ||
path = "../mbedtls-sys" | ||
mbedtls-platform-support = { version = "0.1", path = "../mbedtls-platform-support" } | ||
|
||
[dependencies.mbedtls-platform-support] | ||
version = "0.1" | ||
path = "../mbedtls-platform-support" | ||
[target.x86_64-fortanix-unknown-sgx.dependencies] | ||
rs-libc = "0.2.0" | ||
|
||
[dev-dependencies] | ||
libc = "0.2.0" | ||
|
@@ -62,10 +62,15 @@ pin-project-lite = "0.2" | |
cc = "1.0" | ||
|
||
# feature 'time` is necessary under windows | ||
[target.'cfg(target_os = "windows")'.mbedtls-platform-support] | ||
version = "0.1" | ||
path = "../mbedtls-platform-support" | ||
features = ["time"] | ||
[target.'cfg(target_env = "msvc")'.dependencies] | ||
mbedtls-platform-support = { version = "0.1", path = "../mbedtls-platform-support", features = [ | ||
"time", | ||
] } | ||
mbedtls-sys-auto = { path = "../mbedtls-sys", version = "2.25.0", default-features = false, features = [ | ||
"trusted_cert_callback", | ||
"threading", | ||
"time", | ||
] } | ||
|
||
[features] | ||
# Features are documented in the README | ||
|
@@ -74,7 +79,13 @@ x509 = [] | |
ssl = ["x509"] | ||
|
||
default = ["std", "aesni", "time", "padlock"] | ||
std = ["byteorder/std", "mbedtls-sys-auto/std", "serde/std", "yasna", "mbedtls-platform-support/std"] | ||
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"] | ||
force_aesni_support = ["mbedtls-platform-support/force_aesni_support", "aesni"] | ||
|
@@ -88,7 +99,7 @@ dsa = ["std", "yasna", "num-bigint", "bit-vec"] | |
pkcs12 = ["std", "yasna", "x509"] | ||
pkcs12_rc2 = ["pkcs12", "rc2", "cbc"] | ||
legacy_protocols = ["mbedtls-sys-auto/legacy_protocols", "ssl"] | ||
async = ["std", "tokio","tokio/net","tokio/io-util", "tokio/macros"] | ||
async = ["std", "tokio", "tokio/net", "tokio/io-util", "tokio/macros"] | ||
async-rt = ["async", "tokio/rt", "tokio/sync", "tokio/rt-multi-thread"] | ||
|
||
[[example]] | ||
|