summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-10-26 11:44:35 +0800
committerGitHub <noreply@github.com>2023-10-26 11:44:35 +0800
commit879e5676dfc4a5935adbc9c8073156f1fc207307 (patch)
tree77d48ef707a0fa25afdf35a5ccde6d5e08c1fad4
parentde791a1f62a30f182c76976bf56d077b43060a52 (diff)
`Cargo.toml` manifest cleanup (#311)
* Sort Cargo.toml according to style guide - See https://doc.rust-lang.org/stable/style-guide/cargo.html * Format `cfg` strings in Cargo.toml * Narrow down `regex` dependency to more specific targets
-rw-r--r--Cargo.toml63
1 files changed, 33 insertions, 30 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 1136484..c684eec 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,12 +1,6 @@
[package]
-edition = "2021"
name = "bandwhich"
-description = "Display current network utilization by process, connection and remote IP/hostname"
version = "0.21.1"
-rust-version = "1.70.0"
-homepage = "https://github.com/imsnif/bandwhich"
-repository = "https://github.com/imsnif/bandwhich"
-readme = "README.md"
authors = [
"Aram Drevekenin <aram@poor.dev>",
"Eduardo Toledo <etoledom@icloud.com>",
@@ -15,48 +9,57 @@ authors = [
"Brooks Rady <b.j.rady@gmail.com>",
"cyqsimon <28627918+cyqsimon@users.noreply.github.com>",
]
-keywords = ["networking", "utilization", "cli"]
categories = ["network-programming", "command-line-utilities"]
-license = "MIT"
+edition = "2021"
exclude = ["src/tests/*", "demo.gif"]
+homepage = "https://github.com/imsnif/bandwhich"
+keywords = ["networking", "utilization", "cli"]
+license = "MIT"
+readme = "README.md"
+repository = "https://github.com/imsnif/bandwhich"
+rust-version = "1.70.0"
+description = "Display current network utilization by process, connection and remote IP/hostname"
[dependencies]
-pnet = "0.34.0"
-ipnetwork = "0.20.0"
-ratatui = "0.23.0"
-crossterm = "0.27.0"
-clap = { version = "4.4.6", features = ["derive"] }
-chrono = "0.4"
-regex = "1.10.1"
-tokio = { version = "1.33", features = ["rt", "sync"] }
-trust-dns-resolver = "0.23.1"
-async-trait = "0.1.74"
-unicode-width = "0.1.11"
-resolv-conf = "0.7.0"
-pnet_macros_support = "0.34.0"
anyhow = { version = "1.0.75", features = ["backtrace"] }
-thiserror = "1.0.49"
-log = "0.4.20"
-simplelog = "0.12.1"
+async-trait = "0.1.74"
+chrono = "0.4"
clap-verbosity-flag = "2.0.1"
+clap = { version = "4.4.6", features = ["derive"] }
+crossterm = "0.27.0"
derivative = "2.2.0"
+ipnetwork = "0.20.0"
itertools = "0.11.0"
+log = "0.4.20"
once_cell = "1.18.0"
+pnet = "0.34.0"
+pnet_macros_support = "0.34.0"
+ratatui = "0.23.0"
+resolv-conf = "0.7.0"
+simplelog = "0.12.1"
+thiserror = "1.0.49"
+tokio = { version = "1.33", features = ["rt", "sync"] }
+trust-dns-resolver = "0.23.1"
+unicode-width = "0.1.11"
+
+[target.'cfg(target_os = "linux")'.dependencies]
+procfs = "0.15.1"
-[target.'cfg(target_os="windows")'.dependencies]
+[target.'cfg(any(target_os = "macos", target_os = "freebsd"))'.dependencies]
+regex = "1.10.1"
+
+[target.'cfg(target_os = "windows")'.dependencies]
netstat2 = "0.9.1"
sysinfo = "0.29.10"
-[target.'cfg(target_os="linux")'.dependencies]
-procfs = "0.15.1"
-
[dev-dependencies]
insta = "1.34.0"
-pnet_base = "0.34.0"
packet-builder = { version = "0.7.0", git = "https://github.com/cyqsimon/packet_builder.git", branch = "patch-update" }
+pnet_base = "0.34.0"
+regex = "1.10.1"
rstest = "0.18.2"
-[target.'cfg(target_os="windows")'.build-dependencies]
+[target.'cfg(target_os = "windows")'.build-dependencies]
anyhow = "1.0.75"
http_req = "0.10.0"
zip = "0.6.6"