2
2
name = " mbedtls"
3
3
# We jumped from v0.9 to v0.12 because v0.10 and v0.11 were based on mbedtls 3.X, which
4
4
# we decided not to support.
5
- version = " 0.12.0 "
5
+ version = " 0.12.1 "
6
6
authors = [
" Jethro Beekman <[email protected] >" ]
7
7
build = " build.rs"
8
8
edition = " 2018"
@@ -17,14 +17,17 @@ environment."""
17
17
readme = " ../README.md"
18
18
repository = " https://github.com/fortanix/rust-mbedtls"
19
19
documentation = " https://docs.rs/mbedtls/"
20
- keywords = [" MbedTLS" ," mbed" ," TLS" ," SSL" ," cryptography" ]
20
+ keywords = [" MbedTLS" , " mbed" , " TLS" , " SSL" , " cryptography" ]
21
21
22
22
[dependencies ]
23
23
bitflags = " 1"
24
24
serde = { version = " 1.0.7" , default-features = false , features = [" alloc" ] }
25
25
serde_derive = " 1.0.7"
26
26
byteorder = { version = " 1.0.0" , default-features = false }
27
- yasna = { version = " 0.2" , optional = true , features = [" num-bigint" , " bit-vec" ] }
27
+ yasna = { version = " 0.2" , optional = true , features = [
28
+ " num-bigint" ,
29
+ " bit-vec" ,
30
+ ] }
28
31
num-bigint = { version = " 0.2" , optional = true }
29
32
bit-vec = { version = " 0.5" , optional = true }
30
33
cbc = { version = " 0.1.2" , optional = true }
@@ -33,18 +36,15 @@ cfg-if = "1.0.0"
33
36
tokio = { version = " 1.16.1" , optional = true }
34
37
chrono = { version = " 0.4" , optional = true }
35
38
36
- [target .x86_64-fortanix-unknown-sgx .dependencies ]
37
- rs-libc = " 0.2.0"
39
+ mbedtls-sys-auto = { path = " ../mbedtls-sys" , version = " 2.25.0" , default-features = false , features = [
40
+ " trusted_cert_callback" ,
41
+ " threading" ,
42
+ ] }
38
43
39
- [dependencies .mbedtls-sys-auto ]
40
- version = " 2.25.0"
41
- default-features = false
42
- features = [" trusted_cert_callback" , " threading" ]
43
- path = " ../mbedtls-sys"
44
+ mbedtls-platform-support = { version = " 0.1" , path = " ../mbedtls-platform-support" }
44
45
45
- [dependencies .mbedtls-platform-support ]
46
- version = " 0.1"
47
- path = " ../mbedtls-platform-support"
46
+ [target .x86_64-fortanix-unknown-sgx .dependencies ]
47
+ rs-libc = " 0.2.0"
48
48
49
49
[dev-dependencies ]
50
50
libc = " 0.2.0"
@@ -62,10 +62,15 @@ pin-project-lite = "0.2"
62
62
cc = " 1.0"
63
63
64
64
# feature 'time` is necessary under windows
65
- [target .'cfg(target_os = "windows")' .mbedtls-platform-support ]
66
- version = " 0.1"
67
- path = " ../mbedtls-platform-support"
68
- features = [" time" ]
65
+ [target .'cfg(target_env = "msvc")' .dependencies ]
66
+ mbedtls-platform-support = { version = " 0.1" , path = " ../mbedtls-platform-support" , features = [
67
+ " time" ,
68
+ ] }
69
+ mbedtls-sys-auto = { path = " ../mbedtls-sys" , version = " 2.25.0" , default-features = false , features = [
70
+ " trusted_cert_callback" ,
71
+ " threading" ,
72
+ " time" ,
73
+ ] }
69
74
70
75
[features ]
71
76
# Features are documented in the README
@@ -74,7 +79,13 @@ x509 = []
74
79
ssl = [" x509" ]
75
80
76
81
default = [" std" , " aesni" , " time" , " padlock" ]
77
- std = [" byteorder/std" , " mbedtls-sys-auto/std" , " serde/std" , " yasna" , " mbedtls-platform-support/std" ]
82
+ std = [
83
+ " byteorder/std" ,
84
+ " mbedtls-sys-auto/std" ,
85
+ " serde/std" ,
86
+ " yasna" ,
87
+ " mbedtls-platform-support/std" ,
88
+ ]
78
89
debug = [" mbedtls-sys-auto/debug" ]
79
90
no_std_deps = [" mbedtls-platform-support/spin" , " serde/alloc" ]
80
91
force_aesni_support = [" mbedtls-platform-support/force_aesni_support" , " aesni" ]
@@ -88,7 +99,7 @@ dsa = ["std", "yasna", "num-bigint", "bit-vec"]
88
99
pkcs12 = [" std" , " yasna" , " x509" ]
89
100
pkcs12_rc2 = [" pkcs12" , " rc2" , " cbc" ]
90
101
legacy_protocols = [" mbedtls-sys-auto/legacy_protocols" , " ssl" ]
91
- async = [" std" , " tokio" ," tokio/net" ," tokio/io-util" , " tokio/macros" ]
102
+ async = [" std" , " tokio" , " tokio/net" , " tokio/io-util" , " tokio/macros" ]
92
103
async-rt = [" async" , " tokio/rt" , " tokio/sync" , " tokio/rt-multi-thread" ]
93
104
94
105
[[example ]]
0 commit comments