Commit graph

460 commits

Author SHA1 Message Date
Cain
e86e80522b
feat: Add packet capture functionality and many more CLI improvements (#182) 2024-02-07 22:31:31 +00:00
Cain
7369dbab19 refactor: use slices where possable in pcap 2024-02-07 16:10:04 +00:00
Cain
730c938ad2 chore: format 2024-02-07 15:30:20 +00:00
Cain
7b37e71221 chore: remove unused else 2024-02-07 15:29:13 +00:00
Cain
9a2b953fff refactor: capture socket and move to capture dir 2024-02-07 15:28:41 +00:00
Cain
c34392a3da refactor: pcap packet buffer size 2024-02-07 15:26:17 +00:00
dependabot[bot]
80129ce012
chore(deps): bump emibcn/badge-action in /.github/workflows (#187)
Bumps [emibcn/badge-action](https://github.com/emibcn/badge-action) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/emibcn/badge-action/releases)
- [Commits](https://github.com/emibcn/badge-action/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: emibcn/badge-action
  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-07 16:22:45 +02:00
dependabot[bot]
ca61c1c0b0
chore(deps): bump dorny/paths-filter from 2 to 3 in /.github/workflows (#185)
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 2 to 3.
- [Release notes](https://github.com/dorny/paths-filter/releases)
- [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dorny/paths-filter/compare/v2...v3)

---
updated-dependencies:
- dependency-name: dorny/paths-filter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 19:53:27 +02:00
Tom
fd497764f8
feat: Improve doc-comments for ErrorKind (#186)
* Improve doc-comments for ErrorKind

* error: Improve ErrorKind::BadGame doc comment

* error: fmt ErrorKind doc comments
2024-02-06 17:06:54 +02:00
GitHub Action
175dcf6aa6 Add/Update badge 2024-02-06 03:34:59 +00:00
Cain
48aa5115c0 fix: add xml utf8 and semver declaration 2024-02-02 21:10:41 +00:00
Cain
4675b24ff3 refactor: better xml support and error prop 2024-02-02 20:57:07 +00:00
Cain
eb24b8ec3d
Update license (#179)
* chore: change year

* chore: update LICENSE.md
2024-02-02 10:39:02 +02:00
Cain
744230455c revert: lib default feat to exclude packet capture 2024-02-02 02:34:02 +00:00
Cain
5310200181 fix: cli xml feat not having json dep 2024-02-02 02:01:25 +00:00
Cain
422cb57efa chore: update cli default features 2024-02-02 02:00:15 +00:00
Cain
df51521a79 fix: remove bug panic due to xml protocol format now being supported 2024-02-02 01:58:48 +00:00
Cain
5365845bb5 fix: cli xml LastElementNameNotAvailable error case 2024-02-02 01:44:44 +00:00
Cain
8f381f733c chore: change cli header year 2024-02-02 00:45:17 +00:00
GitHub Action
76604ac3fc Add/Update badge 2024-01-30 03:37:04 +00:00
Douile
bba9f5f11b
cli: Improve capture help string 2024-01-22 22:02:34 +00:00
GitHub Action
144d7ca03d Add/Update badge 2024-01-22 11:36:43 +00:00
Tom
89ed19f089
feat(protocols): Add more control over gathering additional information (#180)
* protocols: Add more control over gathering additional information

Adds GatherToggle which allows choosing the behaviour for how the query
handles fetching additional information. The choices are:
- DontGather - Don't attempt to fetch information
- AttemptGather - Try to fetch the information but ignore errors
- Required - Try to fetch information and fail if it errors

A handy macro was also added to utils to dispatch additional queries
based on a GatherToggle value.

* Add/Update badge

* protocols: Improve GatherToggle enum names

Co-Authored-By: Cain <75994858+cainthebest@users.noreply.github.com>
Co-Authored-By: CosminPerRam <cosmin.p@live.com>

* Add/Update badge

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Cain <75994858+cainthebest@users.noreply.github.com>
Co-authored-by: CosminPerRam <cosmin.p@live.com>
2024-01-22 13:36:17 +02:00
GitHub Action
6d0c25d6ea Add/Update badge 2024-01-19 18:43:30 +00:00
Tom
f922270c60
ci: Only update the node badge on the main branch (#183) 2024-01-19 20:43:02 +02:00
Cain
2deb1df4ae impl: cli release workflow (x86_64, win, dar, linux, wasm32-wasi) 2024-01-19 04:30:20 +00:00
Cain
5dff511e6f refactor: clippy fix + docs 2024-01-18 18:59:59 +00:00
Cain
b1e42f9023 refactor: clippy fixs 2024-01-18 18:59:19 +00:00
Cain
bedd277027 fix: variant Action::Query does not have this field 2024-01-18 18:37:31 +00:00
Cain
e615c63ed2 fix: cli unused import + undeclared crate 2024-01-18 18:18:11 +00:00
Cain
3eb20b9deb fix: mindustry leak crate-private type 2024-01-18 18:13:42 +00:00
Cain
962c856418 fix: packet support for msrv 2024-01-18 18:08:27 +00:00
Cain
b49525543d chore: format 2024-01-18 17:56:58 +00:00
Cain
1991c9f5eb chore: add missing cli fn docs 2024-01-18 17:48:11 +00:00
Tom
32dd486632
fix: various crate/clippy/ci changes (#181)
* crate: Set default binary to gamedig-cli

* crate: Fix bad no-default-features option on gamedig-id dependency

* ci: Run tests when Cargo.toml changes

* id-tests: Clippy fixes
2024-01-18 15:34:05 +02:00
Cain
36d957ceb4
Merge branch 'main' into feat/rootless-capture 2024-01-18 01:56:14 +00:00
Cain
15004f3dae
chore: optimize further 2024-01-17 23:44:47 +00:00
Cain
89d4ddeac7
fix: bson output 2024-01-17 23:44:41 +00:00
Cain
c30f28741f
impl: tcp fin 2024-01-17 23:44:36 +00:00
Cain
61ecbab312
refactor: clean up and add more features 2024-01-17 23:44:30 +00:00
Cain
6cf6800bff
chore: add source link 2024-01-17 23:44:22 +00:00
Cain
6aee5ebb76
chore: format 2024-01-17 23:44:16 +00:00
Cain
0543cabce2
refactor: clean up 2024-01-17 23:44:11 +00:00
Cain
3d47180e85
refactor: backport pcap impl 2024-01-17 23:44:05 +00:00
Cain
49096e46bb
merge: Douile fork + local (broken af) 2024-01-17 23:43:53 +00:00
GitHub Action
0f9bada4f3 Add/Update badge 2024-01-17 13:54:10 +00:00
Tom
07de5168f4
Add support for Mindustry (#178)
* buffer: Add UTF8LengthPrefixed string decoder

* games: Use expression for default port

This allows us to refer to constants for the default ports if we want to
(literals will still work).

* games: Add support for mindustry
2024-01-17 13:53:40 +00:00
GitHub Action
ba92466ae1 Add/Update badge 2024-01-10 23:48:39 +00:00
CosminPerRam
a3bc8b79e5 feat(games): add zombie panic: source support 2024-01-11 01:48:05 +02:00
Tom
b248a7661e
feat: Move ID tests into their own crate with a CLI (#177)
* fix: ID tests not in correct directory

* refactor: Move game-id test logic into its own crate

* id-tests: Add CLI that reads JSON input

* id-tests: Update crate docs

* Remove node ID test

* id-tests: Don't try to parse unneeded info

* id-tests: Enable cli feature by default
2024-01-11 01:31:02 +02:00