mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Crate] Add feature: serde (#21)
* feat(serde): add additional derives * fix: remove attr on internal enum * fix add missing derive
This commit is contained in:
parent
bd2e373d66
commit
84af4230f7
5 changed files with 113 additions and 62 deletions
13
Cargo.toml
13
Cargo.toml
|
|
@ -2,7 +2,10 @@
|
|||
name = "gamedig"
|
||||
version = "0.2.1"
|
||||
edition = "2021"
|
||||
authors = ["CosminPerRam [https://github.com/CosminPerRam]", "node-GameDig contributors [https://github.com/gamedig/node-gamedig/contributors]"]
|
||||
authors = [
|
||||
"CosminPerRam [https://github.com/CosminPerRam]",
|
||||
"node-GameDig contributors [https://github.com/gamedig/node-gamedig/contributors]",
|
||||
]
|
||||
license = "MIT"
|
||||
description = "Check out servers with this."
|
||||
homepage = "https://github.com/gamedig/rust-gamedig"
|
||||
|
|
@ -13,12 +16,14 @@ keywords = ["server", "query", "game", "check", "status"]
|
|||
rust-version = "1.56.1"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
no_games = []
|
||||
serde = ["dep:serde", "serde/derive"]
|
||||
|
||||
[dependencies]
|
||||
byteorder = "1.4.3"
|
||||
|
||||
bzip2-rs = "0.1.2" # for compression
|
||||
bzip2-rs = "0.1.2"
|
||||
crc32fast = "1.3.2"
|
||||
serde_json = "1.0.91"
|
||||
|
||||
serde_json = "1.0.91" # json to structs
|
||||
serde = { version = "1.0.155", optional = true }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue