fix: add tokio time feature, make SendState/RecvState::new public

- tokio 'time' feature needed for tokio::time::interval in retransmit timer
- SendState::new and RecvState::new must be pub for use from main.rs
- prefix unused tx param with underscore
This commit is contained in:
2026-08-13 09:25:27 +00:00
parent 6f7367e36d
commit bf2915d8bd
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ path = "src/main.rs"
[dependencies]
libc = "0.2"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "sync", "io-util"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "sync", "io-util", "time"] }
clap = { version = "4", features = ["derive"] }
pnet_datalink = "0.35"
tracing = "0.1"