examples: make logging mandatory.

This commit simplifies the examples sub project to make logging
mandatory instead of an optional feature flag.

In general this is easier to reason about for small example code, and it
resolves a build error that was present when building w/
`--no-default-features` due to the unconditional use of the `log` crate.
This commit is contained in:
Daniel McCarney 2023-03-28 14:10:40 -04:00 committed by Dirkjan Ochtman
parent cad6b729ba
commit cc80bebb64
1 changed files with 2 additions and 4 deletions

View File

@ -8,17 +8,15 @@ description = "Rustls example code and tests."
publish = false
[features]
default = ["logging"]
logging = ["log"]
dangerous_configuration = ["rustls/dangerous_configuration"]
quic = ["rustls/quic"]
[dependencies]
docopt = "~1.1"
env_logger = "0.9.0" # 0.10 requires an MSRV bump to 1.60
log = { version = "0.4.4", optional = true }
log = { version = "0.4.4" }
mio = { version = "0.8", features = ["net", "os-poll"] }
rustls = { path = "../rustls" }
rustls = { path = "../rustls", features = [ "logging" ]}
rustls-pemfile = "1.0.0"
sct = "0.7"
serde = "1.0"