642 Commits

Author SHA1 Message Date
dependabot[bot]
32895f8fc5 chore(deps): bump thiserror from 1.0.48 to 1.0.49 (#296)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.48...1.0.49)

---
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-10-06 21:22:28 +08:00
dependabot[bot]
e2023edfdd chore(deps): bump unicode-width from 0.1.10 to 0.1.11 (#294)
Bumps [unicode-width](https://github.com/unicode-rs/unicode-width) from 0.1.10 to 0.1.11.
- [Commits](https://github.com/unicode-rs/unicode-width/compare/v0.1.10...v0.1.11)

---
updated-dependencies:
- dependency-name: unicode-width
  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-09-25 09:34:47 +08:00
dependabot[bot]
05f9477871 chore(deps): bump insta from 1.31.0 to 1.32.0 (#293)
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.31.0 to 1.32.0.
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/insta/compare/1.31.0...1.32.0)

---
updated-dependencies:
- dependency-name: insta
  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-09-25 09:34:13 +08:00
cyqsimon
2ec13c5013 Enable dependabot 2023-09-25 09:07:07 +08:00
Marcin Puc
067b7988a6 Add missing version flag to CLI (#290) 2023-09-20 18:40:33 +08:00
cyqsimon
c747de4798 Update test snapshot, another one 2023-09-20 13:14:17 +08:00
cyqsimon
bba578a747 Update test snapshot 2023-09-20 13:04:58 +08:00
cyqsimon
439355ffb3 Add downstream packaging tracking table (repology)
- Closes #287
2023-09-20 10:08:15 +08:00
cyqsimon
14298fc569 Always use github.ref_name for version number v0.21.0 2023-09-19 18:25:22 +08:00
cyqsimon
448152ce1a Bump version to 0.21.0 2023-09-19 17:51:21 +08:00
cyqsimon
1778dc1186 Add comments in workflow definitions 2023-09-19 17:50:25 +08:00
cyqsimon
accad5a6b0 Bump deps 2023-09-19 17:39:26 +08:00
cyqsimon
94bbb43faf Add publish crate workflow 2023-09-19 17:33:21 +08:00
liyixin
eba356220c migrate structopt to clap (#285)
* migrate structopt to clap

* add a entry in changelog

* Move changelog entry from `Added` to `Fixed`

---------

Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
2023-09-11 21:58:49 +08:00
cyqsimon
f50cdeb875 CD: automated workflow only ever drafts releases 2023-09-11 18:39:04 +08:00
cyqsimon
95635a62e0 CD: set correct version for binaries, this time for real 2023-09-11 18:01:44 +08:00
cyqsimon
a9fbc6d463 CD: set correct version for binaries 2023-09-11 17:43:22 +08:00
cyqsimon
c72c3ea4dd CD: Fix upload URL
- Not my last fuck-up after all
2023-09-11 16:52:55 +08:00
cyqsimon
49f3de7cc3 CD: Fix inconsistent matrix declaration
- Hopefully this is my last fuck-up
2023-09-11 16:43:45 +08:00
cyqsimon
f5fd81be64 CD: Fix incorrect tag pattern
Oops
2023-09-11 16:39:53 +08:00
cyqsimon
f733975987 Update CD 2023-09-11 16:36:17 +08:00
sigmaSd
ead54b6883 fix(windows): don't send key twice (#280) 2023-09-01 09:28:41 +08:00
cyqsimon
e1bdc4c475 Disable tests on Windows for PRs 2023-08-31 21:58:32 +08:00
cyqsimon
0cf79b2fbd Cache npcap SDK when building on Windows (#281)
* Cache npcap SDK on Windows

* Call build function correctly

* Log when local cache of SDK is found

* Fix clippy warnings

* Log to STDERR
2023-08-31 20:07:16 +08:00
cyqsimon
20410739d7 Add project status section in README 2023-08-30 11:44:43 +08:00
cyqsimon
53af5b8e2f Improve Linux privilege escalation instructions
- There are merits to always use `sudo` as opposed to `setcap`.
2023-08-30 11:27:16 +08:00
cyqsimon
dab58d18f7 Fix stuck CI on Windows 2023-08-30 11:09:29 +08:00
cyqsimon
872c7a286e Set correct MSRV (1.70.0) 2023-08-30 11:09:29 +08:00
cyqsimon
a8cdf18c9c Test MSRV 2023-08-30 11:09:29 +08:00
cyqsimon
9338067b0b Install pcap on Windows 2023-08-30 11:09:29 +08:00
cyqsimon
f37f70b074 Don't use mapfile to be compatible with Bash 3 on MacOS
This does assume that the path `target/*/build/bandwhich-*/stderr` contains no
spaces, but it should be fine.
2023-08-30 11:09:29 +08:00
cyqsimon
9c11b59c55 Improve build.rs STDERR logging
- Remove `set +x`
- Use GitHub Action's log grouping feature
  - See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
2023-08-30 11:09:29 +08:00
cyqsimon
e57bb52981 Show build.rs STDERR for all targets 2023-08-30 11:09:29 +08:00
cyqsimon
3969767752 Bump MSRV from 1.65.0 to 1.70.0
- Due to use of `OnceCell`: see #278
2023-08-27 23:07:08 +08:00
cyqsimon
9a78cb0120 Note fixes in changelog 2023-08-27 01:09:38 +08:00
Nbiba Bedis
09b13f358d fix: fix snapshot tests 2023-08-26 23:24:38 +08:00
Nbiba Bedis
1220808adb chore: drop lazy_static 2023-08-26 19:14:31 +08:00
Nbiba Bedis
a470ee4e75 chore: remove extra deps 2023-08-26 19:14:31 +08:00
cyqsimon
42ae443bd3 Use variable capture syntax in format macros where possible 2023-08-25 20:16:33 +08:00
cyqsimon
fb176a5212 Set edition 2021 2023-08-25 20:05:45 +08:00
cyqsimon
e9aa59fa0e Compact imports 2023-08-25 19:54:05 +08:00
cyqsimon
dab1985670 Move completion file location 2023-08-25 19:11:27 +08:00
cyqsimon
ffbf0cd8aa Migrate from failure to anyhow+thiserror 2023-08-25 19:02:37 +08:00
cyqsimon
c780c06807 Fix TOC 2023-08-25 18:39:53 +08:00
cyqsimon
08db9a8bf6 Update README 2023-08-25 18:38:12 +08:00
cyqsimon
a43591dfd3 Fix cargo {clippy,fmt} complaints 2023-08-25 17:34:37 +08:00
Nbiba Bedis
492d1f2e2f clippy 2023-08-25 17:34:37 +08:00
Nbiba Bedis
17f77c3593 update tests 2023-08-25 17:34:37 +08:00
Nbiba Bedis
0b7be9398e use alternate mode 2023-08-25 17:34:37 +08:00
cyqsimon
66ba68954e Update MSRV 2023-08-25 17:20:17 +08:00