Commit graph

491 commits

Author SHA1 Message Date
CosminPerRam
3c9f109942 chore: reformat markdown files 2024-04-14 23:08:11 +03:00
CosminPerRam
29f1098daf feat: add Pirates, Knights and Vinkins 2 support 2024-04-14 23:06:43 +03:00
GitHub Action
00840cb4a6 Add/Update badge 2024-04-07 20:10:03 +00:00
CosminPerRam
9264d5fe4a feat: add myth of empires support 2024-04-07 23:09:16 +03:00
GitHub Action
cca938674c Add/Update badge 2024-04-07 20:04:40 +00:00
CosminPerRam
a207c39915
feat: add enshrouded support (#199) 2024-04-07 23:04:04 +03:00
GitHub Action
14bf759fa7 Add/Update badge 2024-04-02 03:35:14 +00:00
GitHub Action
40b70d6576 Add/Update badge 2024-03-24 21:59:58 +00:00
CosminPerRam
f488658afc feat: add mordhau support 2024-03-24 23:59:22 +02:00
CosminPerRam
6e53ef0c22
feat(http): add per-request headers option (#196)
* http: Add per-request headers option

* http: Improve tests

---------

Co-authored-by: Douile <douile@douile.com>
2024-03-16 17:57:07 +02:00
CosminPerRam
f54321da18 fix(cli): release binaries workflow 2024-03-15 18:32:52 +02:00
CosminPerRam
ea6140c5d9 docs(lib): fix eco not being hyperlinked in changelog 2024-03-15 18:30:49 +02:00
CosminPerRam
275fb7d4cd
feat: release 0.5.0 (#191)
* feat: add initial crates readmes

* feat: add initial CLI readme

* fix: some links

* feat: fix node badge, split changelogs, fix some other links add docs in cli

* feat: feature the gamedig site in the lib

* feat: fill in cli package fields

* feat: set CLI version to 0.1.0

* feat: update changelogs to set vers

* feat: update the release workflow
2024-03-15 18:14:59 +02:00
GitHub Action
bcb9ac64c0 Add/Update badge 2024-03-10 21:42:48 +00:00
CosminPerRam
328dfd312b Merge branch 'main' of github.com:gamedig/rust-gamedig 2024-03-10 23:42:18 +02:00
CosminPerRam
04803996cd fix: counter strike 2 gid 2024-03-10 23:41:43 +02:00
GitHub Action
0f0a9da609 Add/Update badge 2024-03-10 21:40:09 +00:00
CosminPerRam
967dc37d64 feat: add Double Action: Boogaloo support 2024-03-10 23:39:39 +02:00
CosminPerRam
82b7a5f169 feat: add counter-strike 2 support 2024-03-10 23:36:04 +02:00
dependabot[bot]
b2e34b32f8
chore(deps): update base64 requirement in /crates/cli (#192)
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64) to permit the latest version.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.7...v0.22.0)

---
updated-dependencies:
- dependency-name: base64
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 17:29:00 +02:00
dependabot[bot]
03fd0c10b2
chore(deps): bump rust-build/rust-build.action in /.github/workflows (#190)
Bumps [rust-build/rust-build.action](https://github.com/rust-build/rust-build.action) from 1.4.4 to 1.4.5.
- [Release notes](https://github.com/rust-build/rust-build.action/releases)
- [Commits](https://github.com/rust-build/rust-build.action/compare/v1.4.4...v1.4.5)

---
updated-dependencies:
- dependency-name: rust-build/rust-build.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-26 16:06:21 +02:00
CosminPerRam
8a38d742f6 chore: run formatting on minecraft types 2024-02-26 00:16:59 +02:00
CosminPerRam
a9fcfe1bb3 tests: add minecraft varint and string types 2024-02-26 00:15:33 +02:00
CosminPerRam
b913b0c7e7 fix: remove unused test 2024-02-25 23:56:21 +02:00
CosminPerRam
1080a94bd2 fix: replace 2 instances of .get(0) with .first() 2024-02-25 23:54:19 +02:00
GitHub Action
4d214ad5fb Add/Update badge 2024-02-25 21:50:57 +00:00
CosminPerRam
c1454805bb
feat: add black ops 3 support (#189)
* feat: add black ops 3 support

* chore: formatting
2024-02-25 23:50:27 +02:00
CosminPerRam
ef017d4703 docs: fix gramatical error in eco protocol 2024-02-25 19:39:27 +02:00
GitHub Action
5d48de178b Add/Update badge 2024-02-10 18:27:29 +00:00
CosminPerRam
310b62664c
feat: http client and eco support (#175)
* feat: initial http and eco support

* http: Replace reqwest with ureq and add HTTPS support

ureq markets itself as a lightweight blocking HTTP client which might be
a good choice for rust-gamedig at the moment. However the main reason
for changing to ureq is that it allows setting a "resolver" function
which overrides the IP address to connect to. This is useful because it
allows us to pass a URL with the desired hostname without the HTTP
library doing an extra DNS lookup (this allows HTTPS to work when we
specify the exact IP and port to connect to external to the URL).

Other changes in this commit are:
- Feature gated things that depend on serde: this means that the eco
  game won't be available if the library is compiled without serde
- Added the TLS feature to enable TLS support in the HTTP library
- Added HTTPSettings to set the protocol (HTTP/HTTPS) and the hostname
- Setting a user-agent string on HTTP requests (allows the server to see
  what program is being used to query them)
- Store the address as a parsed Url so we don't re-parse it on every
  request
- Add a method to POST JSON data and parse response
- Renamed the request() method to get_json() in anticipation of a future
  method that will send a GET request and handle the raw bytes instead
  of using serde
- Improved documentation

* eco: Add generic impls

* eco: fixes

* http: Add headers to HttpSettings and rename from HTTPSettings

* eco: Add extra request settings

* http: Add support for querying raw bytes

* http: Add unit-tests

* http: Rename HttpProtocol

* crate: Make serde dependency non-optional

The serde feature now only enable serde derivations for our types that
don't need it for the library to function.

* http: Add helper for creating HttpClients to query APIs

Adds the from_url helper that should make working with master server web
APIs easier.

* Add/Update badge

* crate: Require games feature for eco example

* docs: Update changelog

---------

Co-authored-by: Douile <douile@douile.com>
2024-02-10 18:26:49 +00:00
Cain
2a65c39cb6 chore: update changelog 2024-02-09 03:26:40 +00:00
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