Build examples as part of the crate

pull/2/head
Dirkjan Ochtman 12 months ago
parent 9c9431be30
commit 0ce49fa9cd
  1. 2
      Cargo.toml
  2. 1
      tokio-rustls/Cargo.toml
  3. 0
      tokio-rustls/examples/client.rs
  4. 14
      tokio-rustls/examples/client/Cargo.toml
  5. 0
      tokio-rustls/examples/server.rs
  6. 12
      tokio-rustls/examples/server/Cargo.toml

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

@ -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"

@ -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"

@ -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"
Loading…
Cancel
Save