Bump to version 0.1.0 -> 0.2.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Pierre HUBERT 2022-10-18 09:39:54 +02:00
parent 3ca6c43c9a
commit e88d64ff63
5 changed files with 31 additions and 9 deletions

8
rust/Cargo.lock generated
View File

@ -421,9 +421,9 @@ dependencies = [
[[package]] [[package]]
name = "clap" name = "clap"
version = "4.0.15" version = "4.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bf8832993da70a4c6d13c581f4463c2bdda27b9bf1c5498dc4365543abe6d6f" checksum = "2ef582e2c00a63a0c0aa1fb4a4870781c4f5729f51196d3537fa7c1c1992eaa3"
dependencies = [ dependencies = [
"atty", "atty",
"bitflags", "bitflags",
@ -1564,7 +1564,7 @@ dependencies = [
[[package]] [[package]]
name = "sea_battle_backend" name = "sea_battle_backend"
version = "0.1.0" version = "0.2.0"
dependencies = [ dependencies = [
"actix", "actix",
"actix-cors", "actix-cors",
@ -1588,7 +1588,7 @@ dependencies = [
[[package]] [[package]]
name = "sea_battle_cli_player" name = "sea_battle_cli_player"
version = "0.1.0" version = "0.2.0"
dependencies = [ dependencies = [
"clap", "clap",
"crossterm", "crossterm",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "sea_battle_backend" name = "sea_battle_backend"
version = "0.1.0" version = "0.2.0"
edition = "2021" edition = "2021"
license = "GPL-2.0-or-later" license = "GPL-2.0-or-later"
description = "A Sea Battle game backend server" 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 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
clap = { version = "4.0.15", features = ["derive"] } clap = { version = "4.0.16", features = ["derive"] }
log = "0.4.17" log = "0.4.17"
env_logger = "0.9.0" env_logger = "0.9.0"
serde = { version = "1.0.145", features = ["derive"] } serde = { version = "1.0.145", features = ["derive"] }

View File

@ -12,3 +12,14 @@ pub struct Args {
#[clap(short, long, value_parser)] #[clap(short, long, value_parser)]
pub cors: Option<String>, pub cors: Option<String>,
} }
#[cfg(test)]
mod test {
use crate::args::Args;
#[test]
fn verify_cli() {
use clap::CommandFactory;
Args::command().debug_assert()
}
}

View File

@ -1,6 +1,6 @@
[package] [package]
name = "sea_battle_cli_player" name = "sea_battle_cli_player"
version = "0.1.0" version = "0.2.0"
edition = "2021" edition = "2021"
license = "GPL-2.0-or-later" license = "GPL-2.0-or-later"
description = "A Sea Battle game shell client" 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 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
sea_battle_backend = { path = "../sea_battle_backend", version = "0.1.0" } sea_battle_backend = { path = "../sea_battle_backend", version = "0.2.0" }
clap = { version = "4.0.15", features = ["derive"] } clap = { version = "4.0.16", features = ["derive"] }
log = "0.4.17" log = "0.4.17"
env_logger = "0.9.0" env_logger = "0.9.0"
tui = "0.19.0" tui = "0.19.0"

View File

@ -61,3 +61,14 @@ lazy_static::lazy_static! {
pub fn cli_args() -> &'static CliArgs { pub fn cli_args() -> &'static CliArgs {
&ARGS &ARGS
} }
#[cfg(test)]
mod test {
use crate::cli_args::CliArgs;
#[test]
fn verify_cli() {
use clap::CommandFactory;
CliArgs::command().debug_assert()
}
}