Skip to content

Commit a70ffc5

Browse files
committed
fix: add echo test back
1 parent 15d95a7 commit a70ffc5

File tree

4 files changed

+550
-2
lines changed

4 files changed

+550
-2
lines changed

Cargo.lock

Lines changed: 250 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ktls/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ ktls-util = { path = "../ktls-util" }
3434
rand = "0.9.2"
3535
rcgen = { version = "0.14.3" }
3636
rustls = { version = "0.23.27", default-features = false, features = ["std", "ring"] }
37-
tokio = { version = "1.40", features = ["io-util", "macros", "net", "rt-multi-thread", "signal", "time"] }
37+
test-case = "3.3.1"
38+
tokio = { version = "1.40", features = ["io-util", "macros", "net", "rt-multi-thread", "signal", "sync", "time"] }
39+
tracing = "0.1.41"
40+
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "parking_lot"] }
3841

3942
[features]
4043
default = ["tls12", "async-io-tokio"]

ktls/examples/server.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ mod common;
44

55
#[tokio::main]
66
async fn main() -> Result<(), Box<dyn std::error::Error>> {
7+
let _ = tracing_subscriber::fmt()
8+
.with_env_filter(tracing_subscriber::EnvFilter::new("TRACE"))
9+
.try_init();
10+
711
tokio::select! {
812
biased;
913
_ = tokio::signal::ctrl_c() => {
10-
println!("Received Ctrl + C...");
14+
tracing::info!("Received Ctrl + C...");
1115

1216
Ok(())
1317
}

0 commit comments

Comments
 (0)