From e88d64ff63fcb3c2009b9ca93ad24db455236006 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Tue, 18 Oct 2022 09:39:54 +0200 Subject: [PATCH] Bump to version 0.1.0 -> 0.2.0 --- rust/Cargo.lock | 8 ++++---- rust/sea_battle_backend/Cargo.toml | 4 ++-- rust/sea_battle_backend/src/args.rs | 11 +++++++++++ rust/sea_battle_cli_player/Cargo.toml | 6 +++--- rust/sea_battle_cli_player/src/cli_args.rs | 11 +++++++++++ 5 files changed, 31 insertions(+), 9 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index eec1825..e6a4849 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -421,9 +421,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.0.15" +version = "4.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bf8832993da70a4c6d13c581f4463c2bdda27b9bf1c5498dc4365543abe6d6f" +checksum = "2ef582e2c00a63a0c0aa1fb4a4870781c4f5729f51196d3537fa7c1c1992eaa3" dependencies = [ "atty", "bitflags", @@ -1564,7 +1564,7 @@ dependencies = [ [[package]] name = "sea_battle_backend" -version = "0.1.0" +version = "0.2.0" dependencies = [ "actix", "actix-cors", @@ -1588,7 +1588,7 @@ dependencies = [ [[package]] name = "sea_battle_cli_player" -version = "0.1.0" +version = "0.2.0" dependencies = [ "clap", "crossterm", diff --git a/rust/sea_battle_backend/Cargo.toml b/rust/sea_battle_backend/Cargo.toml index a502b7e..f64bace 100644 --- a/rust/sea_battle_backend/Cargo.toml +++ b/rust/sea_battle_backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sea_battle_backend" -version = "0.1.0" +version = "0.2.0" edition = "2021" license = "GPL-2.0-or-later" description = "A Sea Battle game backend server" @@ -12,7 +12,7 @@ categories = [ "games" ] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -clap = { version = "4.0.15", features = ["derive"] } +clap = { version = "4.0.16", features = ["derive"] } log = "0.4.17" env_logger = "0.9.0" serde = { version = "1.0.145", features = ["derive"] } diff --git a/rust/sea_battle_backend/src/args.rs b/rust/sea_battle_backend/src/args.rs index 787d267..aff15d0 100644 --- a/rust/sea_battle_backend/src/args.rs +++ b/rust/sea_battle_backend/src/args.rs @@ -12,3 +12,14 @@ pub struct Args { #[clap(short, long, value_parser)] pub cors: Option, } + +#[cfg(test)] +mod test { + use crate::args::Args; + + #[test] + fn verify_cli() { + use clap::CommandFactory; + Args::command().debug_assert() + } +} diff --git a/rust/sea_battle_cli_player/Cargo.toml b/rust/sea_battle_cli_player/Cargo.toml index d434c3f..c1c8fd8 100644 --- a/rust/sea_battle_cli_player/Cargo.toml +++ b/rust/sea_battle_cli_player/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sea_battle_cli_player" -version = "0.1.0" +version = "0.2.0" edition = "2021" license = "GPL-2.0-or-later" description = "A Sea Battle game shell client" @@ -12,8 +12,8 @@ categories = [ "games" ] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -sea_battle_backend = { path = "../sea_battle_backend", version = "0.1.0" } -clap = { version = "4.0.15", features = ["derive"] } +sea_battle_backend = { path = "../sea_battle_backend", version = "0.2.0" } +clap = { version = "4.0.16", features = ["derive"] } log = "0.4.17" env_logger = "0.9.0" tui = "0.19.0" diff --git a/rust/sea_battle_cli_player/src/cli_args.rs b/rust/sea_battle_cli_player/src/cli_args.rs index 284da4a..239f416 100644 --- a/rust/sea_battle_cli_player/src/cli_args.rs +++ b/rust/sea_battle_cli_player/src/cli_args.rs @@ -61,3 +61,14 @@ lazy_static::lazy_static! { pub fn cli_args() -> &'static CliArgs { &ARGS } + +#[cfg(test)] +mod test { + use crate::cli_args::CliArgs; + + #[test] + fn verify_cli() { + use clap::CommandFactory; + CliArgs::command().debug_assert() + } +}