* feat: initial minetest support
* move player to master, remove comments
* add markdown lines
* oops, change player namespace
* fix some edge cases
* add entry to responses, tweak field names
* feat: add minetest master server service"
* restore tf2 example
* chore: replace default with None
* fix: make it available only on TLS and serde
* docs: update changelog
* feat: add initial epic client auth call
* fix: working client auth
* feat: unfinished initial EOS query
* first successful query
* first successful server query
* run fmt
* be a bit more detailed about servers
* properly run fmt for sure this time fr fr
* port of what node gamedig has done
* feat: remove query_raw_values to query_raw
* feat: add raw field to epic response
* feat: pass SocketAddr to epic
* feat: remove unused pub access to internal only struct
* feat: add initial generic impl
* fix: possibly conditional comp
* feat: add epic to the protocol list
* feat: add version and add epic to RESPONSES.md
* feat: add asa to definitions
* feat: add initial protocol macros
* feat: conditional serde ser and des
* fix: cfg serde stuff
* fix: epic macro warn dead code
* partial feature gate epic to tls
* fix: remove asa from game definitions
* 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>
* 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>