Build examples as part of the crate

This commit is contained in:
Dirkjan Ochtman 2023-05-31 09:13:45 +02:00
parent 9c9431be30
commit 0ce49fa9cd
6 changed files with 1 additions and 28 deletions

View File

@ -1,6 +1,4 @@
[workspace]
members = [
"tokio-rustls",
"tokio-rustls/examples/client",
"tokio-rustls/examples/server"
]

View File

@ -25,6 +25,7 @@ secret_extraction = ["rustls/secret_extraction"]
tls12 = ["rustls/tls12"]
[dev-dependencies]
argh = "0.1"
tokio = { version = "1.0", features = ["full"] }
futures-util = "0.3.1"
lazy_static = "1"

View File

@ -1,14 +0,0 @@
[package]
name = "client"
version = "0.1.0"
authors = ["quininer <quininer@live.com>"]
edition = "2018"
rust-version = "1.56"
[dependencies]
tokio = { version = "1.0", features = [ "full" ] }
argh = "0.1"
tokio-rustls = { path = "../.." }
webpki = { package = "rustls-webpki", version = "0.100.0", features = ["alloc", "std"] }
webpki-roots = "0.22"
rustls-pemfile = "1.0"

View File

@ -1,12 +0,0 @@
[package]
name = "server"
version = "0.1.0"
authors = ["quininer <quininer@live.com>"]
edition = "2018"
rust-version = "1.56"
[dependencies]
tokio = { version = "1.0", features = [ "full" ] }
argh = "0.1"
tokio-rustls = { path = "../.." }
rustls-pemfile = "1.0"