mirror of
https://github.com/aramperes/nut-rs.git
synced 2025-09-09 05:28:31 -04:00
parent
36202d9f1f
commit
5c9923d000
8 changed files with 547 additions and 3 deletions
|
@ -15,9 +15,21 @@ license = "MIT"
|
|||
|
||||
[dependencies]
|
||||
shell-words = "1.0.0"
|
||||
rustls = { version = "0.19", optional = true, features = ["dangerous_configuration"] }
|
||||
rustls = { version = "0.19", optional = true }
|
||||
webpki = { version = "0.21", optional = true }
|
||||
webpki-roots = { version = "0.21", optional = true }
|
||||
tokio = { version = "1", optional = true, features = ["net", "io-util", "rt"] }
|
||||
tokio-rustls = { version = "0.22", optional = true }
|
||||
|
||||
[features]
|
||||
ssl = ["rustls", "webpki", "webpki-roots"]
|
||||
default = []
|
||||
ssl = ["rustls", "rustls/dangerous_configuration", "webpki", "webpki-roots"]
|
||||
async = ["tokio"]
|
||||
async-ssl = ["async", "tokio-rustls", "ssl"]
|
||||
|
||||
# a feature gate for examples
|
||||
async-rt = ["tokio/rt-multi-thread", "tokio/macros"]
|
||||
|
||||
[[example]]
|
||||
name = "async"
|
||||
required-features = ["async-rt"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue