mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
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
This commit is contained in:
parent
88bf996a5e
commit
b248a7661e
7 changed files with 144 additions and 113 deletions
29
crates/id-tests/Cargo.toml
Normal file
29
crates/id-tests/Cargo.toml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
[package]
|
||||
name = "gamedig-id-tests"
|
||||
version = "0.0.1"
|
||||
edition = "2021"
|
||||
authors = [
|
||||
"rust-GameDig contributors [https://github.com/gamedig/rust-gamedig/contributors]",
|
||||
"node-GameDig contributors [https://github.com/gamedig/node-gamedig/contributors]",
|
||||
]
|
||||
license = "MIT"
|
||||
description = "Test if IDs match the gamedig rules"
|
||||
homepage = "https://github.com/gamedig/rust-gamedig/CONTRIBUTING.md#naming"
|
||||
repository = "https://github.com/gamedig/rust-gamedig"
|
||||
readme = "README.md"
|
||||
rust-version = "1.65.0"
|
||||
|
||||
[features]
|
||||
cli = ["dep:serde_json", "dep:serde"]
|
||||
default = ["cli"]
|
||||
|
||||
[[bin]]
|
||||
name = "gamedig-id-tests"
|
||||
required-features = ["cli"]
|
||||
|
||||
[dependencies]
|
||||
number_to_words = "0.1"
|
||||
roman_numeral = "0.1"
|
||||
|
||||
serde_json = { version = "1", optional = true }
|
||||
serde = { version = "1", optional = true, features = ["derive"] }
|
||||
Loading…
Add table
Add a link
Reference in a new issue