Commit Graph

464 Commits

Author SHA1 Message Date
cyqsimon
94ada5db8a Add logging infrastructure (#302)
* Add logging dependencies

* Initialise logging
2023-10-11 18:16:56 +08:00
cyqsimon
5cb09cca19 Reduce repitition using default Opts 2023-10-11 17:42:06 +08:00
cyqsimon
5884c7322f Never use &Option in function signature 2023-10-11 17:20:14 +08:00
cyqsimon
b353c51ae8 Minor refactor of main.rs (#301)
* Move CLI structs to their own file

* `main` returns `Result` directly

* Slightly reduced nesting
2023-10-11 17:02:41 +08:00
cyqsimon
4a27da5d56 CI: upload binaries as long as build step succeeds 2023-10-09 01:47:01 +08:00
cyqsimon
6989ce222a CI: allow manual triggering 2023-10-09 01:26:19 +08:00
cyqsimon
8c6be282a5 CI: make insta generate new snapshots in CI
See https://github.com/mitsuhiko/insta/issues/411
2023-10-08 10:25:54 +08:00
cyqsimon
18721fcef6 CI: set --color=never for cargo-insta 2023-10-08 02:30:04 +08:00
cyqsimon
138af25943 CI: test using cargo-insta 2023-10-08 01:19:16 +08:00
cyqsimon
96cbe63a97 Explicitly name layout-* tests as so 2023-10-08 01:02:28 +08:00
cyqsimon
471aa62a95 Migrate all tests to using cargo-insta 2023-10-08 00:54:40 +08:00
cyqsimon
47158ac3c7 CI: override default run condition for failed test snapshots upload step 2023-10-07 23:52:03 +08:00
cyqsimon
53f6feae17 CI: upload failed test snapshots 2023-10-07 23:43:19 +08:00
cyqsimon
4d1f62b46a CI: Use checkout v4 2023-10-07 23:18:56 +08:00
cyqsimon
e618fea18e CI: Auto fetch MSRV from Cargo.toml (#300)
* CI: Auto fetch MSRV from Cargo.toml

* CI: Forgot to checkout before fetching MSRV
2023-10-07 23:16:51 +08:00
cyqsimon
72b04c82ae Compact tests using rstest 2023-10-07 22:35:35 +08:00
cyqsimon
f1b49254c2 Rm old, unused test snapshots 2023-10-07 21:56:17 +08:00
cyqsimon
d75de8e948 Update table of contents 2023-10-07 17:46:14 +08:00
cyqsimon
dc4104215e chore: cargo update 2023-10-07 16:51:14 +08:00
dependabot[bot]
59583531dd chore(deps): bump clap from 4.4.4 to 4.4.6 (#299)
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.4 to 4.4.6.
- [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.4...v4.4.6)

---
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-10-06 21:23:13 +08:00
dependabot[bot]
47d9968b78 chore(deps): bump regex from 1.9.5 to 1.9.6 (#298)
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.5 to 1.9.6.
- [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.9.5...1.9.6)

---
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-10-06 21:22:53 +08:00
dependabot[bot]
265db62804 chore(deps): bump insta from 1.32.0 to 1.33.0 (#297)
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.32.0 to 1.33.0.
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/insta/compare/1.32.0...1.33.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-10-06 21:22:37 +08:00
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