Commit Graph

532 Commits

Author SHA1 Message Date
cyqsimon
862ede716c Remove redundant imports (#377)
* Remove redundant imports

- Now linted by clippy in 1.78
- See https://github.com/rust-lang/rust/pull/117772

* Write changelog

* Remove Windows-only redundant imports in build script
2024-03-01 10:55:38 +08:00
cyqsimon
5f5cc7ed60 Add co-maintainership invitation 2024-02-05 12:11:54 +08:00
dependabot[bot]
0069843a28 chore(deps): bump itertools from 0.12.0 to 0.12.1 (#363)
Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.12.0 to 0.12.1.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.12.0...v0.12.1)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-01 10:21:32 +08:00
dependabot[bot]
ab94c6c544 chore(deps): bump strum from 0.25.0 to 0.26.1 (#362)
Bumps [strum](https://github.com/Peternator7/strum) from 0.25.0 to 0.26.1.
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

---
updated-dependencies:
- dependency-name: strum
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-01 10:21:20 +08:00
dependabot[bot]
4fff2a2dd3 chore(deps): bump clap_mangen from 0.2.17 to 0.2.18 (#361)
Bumps [clap_mangen](https://github.com/clap-rs/clap) from 0.2.17 to 0.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_mangen-v0.2.17...clap_mangen-v0.2.18)

---
updated-dependencies:
- dependency-name: clap_mangen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-01 10:21:05 +08:00
cyqsimon
b5e48ba9bb CI: include generated assets in release archive (#359)
* CI: include generated assets in release archive

* Write changelog
2024-01-30 13:29:01 +08:00
cyqsimon
aed83d833a CI: strip release binaries for all targets (#358)
* CI: strip release binaries for all targets

- This is now done using `rustc` flags directly

* Write changelog
2024-01-30 01:17:58 +08:00
cyqsimon
96a7f77271 Bump version to 0.22.2 v0.22.2 2024-01-28 04:23:00 +08:00
cyqsimon
dc0468c8e7 Generate completion & manpage (#357)
* Generate completion & manpage

* Write changelog
2024-01-28 04:21:06 +08:00
cyqsimon
592f733082 Bump version to 0.22.1 v0.22.1 2024-01-28 02:33:41 +08:00
cyqsimon
67711e7f71 Hot-fix: Windows compile issue (#356) 2024-01-28 02:31:17 +08:00
cyqsimon
1b58a0c4c4 Bump version to 0.22.0 v0.22.0 2024-01-28 01:00:41 +08:00
cyqsimon
f865a5d51d Bump all dependencies 2024-01-28 01:00:01 +08:00
dependabot[bot]
9e0dc2b612 chore(deps): bump ratatui from 0.24.0 to 0.25.0 (#348)
* chore(deps): bump ratatui from 0.24.0 to 0.25.0

Bumps [ratatui](https://github.com/ratatui-org/ratatui) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/ratatui-org/ratatui/releases)
- [Changelog](https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ratatui-org/ratatui/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: ratatui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update API changes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
2024-01-28 00:22:01 +08:00
cyqsimon
65638676e6 CI: Fix incorrect link 2024-01-28 00:19:22 +08:00
dependabot[bot]
bacc2f3403 chore(deps): bump tracing from 0.1.39 to 0.1.40 (#354)
Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.39 to 0.1.40.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.39...tracing-0.1.40)

---
updated-dependencies:
- dependency-name: tracing
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 13:33:14 +08:00
dependabot[bot]
8b46c95b28 chore(deps): bump anyhow from 1.0.75 to 1.0.78 (#347)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.75 to 1.0.78.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.75...1.0.78)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 11:20:46 +08:00
dependabot[bot]
b85f509413 chore(deps): bump http_req from 0.10.1 to 0.10.2 (#344)
Bumps [http_req](https://github.com/jayjamesjay/http_req) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/jayjamesjay/http_req/releases)
- [Commits](https://github.com/jayjamesjay/http_req/compare/v0.10.1...v0.10.2)

---
updated-dependencies:
- dependency-name: http_req
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 10:54:07 +08:00
dependabot[bot]
8952441ff0 chore(deps): bump clap from 4.4.10 to 4.4.12 (#345)
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.10 to 4.4.12.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.10...v4.4.12)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 10:53:59 +08:00
dependabot[bot]
720a836f41 chore(deps): bump thiserror from 1.0.50 to 1.0.53 (#346)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.50 to 1.0.53.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.50...1.0.53)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 10:53:48 +08:00
dependabot[bot]
e99f3535b4 chore(deps): bump once_cell from 1.18.0 to 1.19.0 (#349)
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.18.0 to 1.19.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.18.0...v1.19.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 10:53:22 +08:00
dependabot[bot]
be3d5c75d8 chore(deps): bump clap-verbosity-flag from 2.1.0 to 2.1.1 (#350)
Bumps [clap-verbosity-flag](https://github.com/clap-rs/clap-verbosity-flag) from 2.1.0 to 2.1.1.
- [Changelog](https://github.com/clap-rs/clap-verbosity-flag/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap-verbosity-flag/compare/v2.1.0...v2.1.1)

---
updated-dependencies:
- dependency-name: clap-verbosity-flag
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 10:53:13 +08:00
dependabot[bot]
01e336daf5 chore(deps): bump tokio from 1.34.0 to 1.35.1 (#351)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.34.0 to 1.35.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.34.0...tokio-1.35.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 10:53:01 +08:00
dependabot[bot]
73a39a43b4 chore(deps): bump async-trait from 0.1.74 to 0.1.76 (#352)
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.74 to 0.1.76.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.74...0.1.76)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 10:52:37 +08:00
dependabot[bot]
bef8d8cebb chore(deps): bump zerocopy from 0.7.21 to 0.7.31 (#343)
Bumps [zerocopy](https://github.com/google/zerocopy) from 0.7.21 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases)
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/zerocopy/compare/v0.7.21...v0.7.31)

---
updated-dependencies:
- dependency-name: zerocopy
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-16 20:01:26 +08:00
cyqsimon
451a7a2642 Write changelog for all unreleased commits
This shouldn't be necessary in the future due to #331.
2023-12-08 17:00:56 +08:00
cyqsimon
53cfcd0c15 Upload changed snapshots from all dirs 2023-12-08 16:44:36 +08:00
ilyes-ced
5648be6f11 Show interface names (#340)
* added interface names

* some fixes

* Set interface name in UI only once

* Code style

* Add changelog entry

---------

Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
2023-12-08 16:33:10 +08:00
cyqsimon
0a89c5aba5 Fix PR submitter detection (#342) 2023-12-08 15:49:41 +08:00
dependabot[bot]
da5fc0b6f6 chore(deps): bump sysinfo from 0.29.10 to 0.29.11 (#336)
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.29.10 to 0.29.11.
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits)

---
updated-dependencies:
- dependency-name: sysinfo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 10:41:46 +08:00
dependabot[bot]
fdfbdb860b chore(deps): bump tokio from 1.33.0 to 1.34.0 (#335)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.33.0 to 1.34.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.33.0...tokio-1.34.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 10:41:35 +08:00
dependabot[bot]
8919229ae8 chore(deps): bump itertools from 0.11.0 to 0.12.0 (#334)
Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.11.0 to 0.12.0.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 10:41:15 +08:00
dependabot[bot]
b310bb6f02 chore(deps): bump clap from 4.4.7 to 4.4.10 (#333)
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.7 to 4.4.10.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.7...v4.4.10)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 10:40:58 +08:00
dependabot[bot]
42e379a458 chore(deps): bump openssl from 0.10.57 to 0.10.60 (#332)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.57 to 0.10.60.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.57...openssl-v0.10.60)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 09:03:40 +08:00
cyqsimon
23827065c2 CI: ensure a changelog entry exists for each PR (#331)
* CI: ensure a changelog entry exists for each PR

* Write CHANGELOG

* Fix grep by adding `-P`
2023-11-12 14:32:46 +08:00
cyqsimon
16a6f9eec6 Display bandwidth in different unit families (#328)
* Allow selecting unit families

- Supported units are {binary,SI}-{bytes,bits}

* Fix typo

* Better error msg in the unreachable case

* - I can't believe I did this. Frankly, terrible.

* Add unit test

* Add peta&pebi units to be absolutely future-proof

* Minor code style improvement
2023-11-02 14:00:58 +08:00
cyqsimon
cf9b9f0634 Reorganise & cleanup (#329)
* Get rid of outdated, unused packaging files

* Create `/res`
2023-11-02 00:59:56 +08:00
cyqsimon
022eade156 Bump ratatui to 0.24.0 (#327) 2023-11-01 12:00:58 +08:00
dependabot[bot]
75a7b38e2c chore(deps): bump procfs from 0.15.1 to 0.16.0 (#321)
Bumps [procfs](https://github.com/eminence/procfs) from 0.15.1 to 0.16.0.
- [Release notes](https://github.com/eminence/procfs/releases)
- [Commits](https://github.com/eminence/procfs/compare/v0.15.1...v0.16.0)

---
updated-dependencies:
- dependency-name: procfs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 11:05:06 +08:00
dependabot[bot]
a8b051710a chore(deps): bump trust-dns-resolver from 0.23.1 to 0.23.2 (#319)
Bumps [trust-dns-resolver](https://github.com/bluejekyll/trust-dns) from 0.23.1 to 0.23.2.
- [Release notes](https://github.com/bluejekyll/trust-dns/releases)
- [Changelog](https://github.com/hickory-dns/hickory-dns/blob/v0.23.2/CHANGELOG.md)
- [Commits](https://github.com/bluejekyll/trust-dns/compare/v0.23.1...v0.23.2)

---
updated-dependencies:
- dependency-name: trust-dns-resolver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 10:25:54 +08:00
dependabot[bot]
a46c9337dc chore(deps): bump clap from 4.4.6 to 4.4.7 (#320)
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.6 to 4.4.7.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.6...v4.4.7)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 10:25:43 +08:00
dependabot[bot]
d7850e609d chore(deps): bump regex from 1.10.1 to 1.10.2 (#325)
Bumps [regex](https://github.com/rust-lang/regex) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.10.1...1.10.2)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 10:25:09 +08:00
dependabot[bot]
14a469b550 chore(deps): bump thiserror from 1.0.49 to 1.0.50 (#323)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.49 to 1.0.50.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.49...1.0.50)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 10:24:37 +08:00
dependabot[bot]
624ce926a9 chore(deps): bump http_req from 0.10.0 to 0.10.1 (#324)
Bumps [http_req](https://github.com/jayjamesjay/http_req) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/jayjamesjay/http_req/releases)
- [Commits](https://github.com/jayjamesjay/http_req/compare/v0.10.0...v0.10.1)

---
updated-dependencies:
- dependency-name: http_req
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 10:24:28 +08:00
dependabot[bot]
c15d6c3eab chore(deps): bump clap-verbosity-flag from 2.0.1 to 2.1.0 (#326)
Bumps [clap-verbosity-flag](https://github.com/clap-rs/clap-verbosity-flag) from 2.0.1 to 2.1.0.
- [Changelog](https://github.com/clap-rs/clap-verbosity-flag/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap-verbosity-flag/compare/v2.0.1...v2.1.0)

---
updated-dependencies:
- dependency-name: clap-verbosity-flag
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 10:24:17 +08:00
cyqsimon
aef30c9bee Log unresolved processes in more detail + general refactor (#318)
* Refactor & reorganisation of `get_proc_name`

* Log both src & dst when we fail to resolve connection to process

- Per recommendation in https://github.com/imsnif/bandwhich/issues/196#issuecomment-1763278674
2023-11-01 01:44:27 +08:00
cyqsimon
62c0fbf128 Fix vague CLI option documentation; closes #314 (#316) 2023-10-29 21:25:49 +08:00
cyqsimon
2c49b0fc12 Use once_cell::sync::Lazy to make regex usage more ergonomic (#313) 2023-10-26 14:59:42 +08:00
cyqsimon
34713f699b Minor code style improvements (#312)
- Build regex only once using `once_cell::sync::Lazy`
- Reduce code duplication
2023-10-26 11:52:35 +08:00
cyqsimon
879e5676df 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
2023-10-26 11:44:35 +08:00