These hooks can be installed using [pre-commit], with:
"pre-commit install". Once installed they will prevent you from
committing if the staged code has clippy warnings or hasn't been
formatted. You can skip the pre-commit checks by adding the "-n" flag to
your git commit command.
The hooks also require rustup as the nightly versions of rustfmt and
clippy are used.
[pre-commit]: https://pre-commit.com/
* [Game] Add JC2MP support.
* [Game] Add game to changelog and games
* [Games] Add generic support to JC2MP.
* [Game] Add players_maximum and players_online
* Define games as structs
* Create table of response types
* Ensure serde is always included
* Remove server_ prefix in GenericResponse
* Make players online/max non-optional in generic response
* Use already existing minecraft server enum
* Implement ExtraResponses to prevent cloning when creating generic
* Add game definitions
* Add doc comments to generic types
* Include players in gamespy extra responses
* Add custom response types for TheShip and FFOW
* Cargo format differing files
* Final cleanup
* [Protocol] Add initial files
* [Protocol] Add test to test the request
* [Protocol] Add initial query response type
* [Protocol] Parse teams
* [Protocol] Add players parse and add nice macro
* [Protocol] Add proper derives to structs
* [Protocol] Change to get all informations from one request
* [Protocol] Add Halo: CE support and update CHANGELOG.md
* [Protocol] Remove a .clone usage
* [Protocol] Add todo comment regarding code performance
* [Protocol] Use iterator instead of index range
* [Protocol] Initial packet receive implementation
* [Protocol] Add key extraction
* [Protocol] Fix new Ipv4Addr query address and get string with unended
* [Protocol] Properly parse the received data
* [Protocol] Add parse players
* [Protocol] Add bots
* [Protocol] Extract into functions
* [Protocol] Remove quotes from player name
* [Protocol] Add two and three files
* [Protocol] Make quake queries very modular
* [Protocol] Remove the need of a client instance
* [Protocol] Revesed if statement
* [Protocol] Apply clippy fixes and replace String by &str in get send header
* [Protocol] Add one and three implementations
* [Protocol] Add quake2 and quake3 to master_querant
* [Protocol] Fix Q2 implementation
* [Protocol] Change from Ipv4Addr to IpAddr
* [Protocol] Fix Q3 response header
* [Protocol] Fix Q3 response
* [Crate] Add Q1, 2 and 3 to changelog and protocols
* [Protocol] Extract client into separate file and add some docs
Replace usages of Ipv4Addr with IpAddr which allows the use of either Ipv4 or Ipv6.
This patch essentially consists of running:
"sed -i 's/Ipv4Addr/IpAddr/g' src/**/*.rs examples/*"
and fixing the errors.