Refactor lib/binary into separate crates

This commit is contained in:
Will Greenberg
2023-12-27 16:08:37 -08:00
parent 51fc9eba56
commit e20fe92213
17 changed files with 80 additions and 139 deletions
+6 -35
View File
@@ -1,36 +1,7 @@
[package]
name = "wavehunter"
version = "0.1.0"
edition = "2021"
[workspace]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "wavehunter"
path = "src/lib.rs"
[[bin]]
name = "wavehunter-reader"
path = "src/bin/wavehunter_reader.rs"
[[bin]]
name = "wavehunter"
path = "src/bin/wavehunter.rs"
[dependencies]
bytes = "1.5.0"
chrono = "0.4.31"
crc = "3.0.1"
deku = { version = "0.16.0", features = ["logging"] }
env_logger = "0.10.1"
libc = "0.2.150"
log = "0.4.20"
pcap-file = "2.0.0"
thiserror = "1.0.50"
# TODO: split into binary-only dependencies
toml = "0.8.8"
serde = { version = "1.0.193", features = ["derive"] }
tokio = { version = "1.35.1", features = ["full"] }
axum = "0.7.2"
axum-extra = { version = "0.9.0", features = ["async-read-body"] }
futures-core = "0.3.30"
members = [
"orca",
"wavehunter",
]
resolver = "2"