Rename crate
This commit is contained in:
parent
cf1d77f445
commit
dfaa5ce30b
50
rust/Cargo.lock
generated
50
rust/Cargo.lock
generated
@ -456,31 +456,6 @@ dependencies = [
|
||||
"os_str_bytes",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cli_player"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"crossterm",
|
||||
"env_logger",
|
||||
"futures",
|
||||
"hostname",
|
||||
"hyper-rustls",
|
||||
"lazy_static",
|
||||
"log",
|
||||
"num",
|
||||
"num-derive",
|
||||
"num-traits",
|
||||
"rustls",
|
||||
"sea_battle_backend",
|
||||
"serde_json",
|
||||
"serde_urlencoded",
|
||||
"textwrap",
|
||||
"tokio",
|
||||
"tokio-tungstenite",
|
||||
"tui",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "codespan-reporting"
|
||||
version = "0.11.1"
|
||||
@ -1564,6 +1539,31 @@ dependencies = [
|
||||
"uuid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sea_battle_cli_player"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"crossterm",
|
||||
"env_logger",
|
||||
"futures",
|
||||
"hostname",
|
||||
"hyper-rustls",
|
||||
"lazy_static",
|
||||
"log",
|
||||
"num",
|
||||
"num-derive",
|
||||
"num-traits",
|
||||
"rustls",
|
||||
"sea_battle_backend",
|
||||
"serde_json",
|
||||
"serde_urlencoded",
|
||||
"textwrap",
|
||||
"tokio",
|
||||
"tokio-tungstenite",
|
||||
"tui",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "security-framework"
|
||||
version = "2.7.0"
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
members = [
|
||||
"sea_battle_backend",
|
||||
"cli_player"
|
||||
"sea_battle_cli_player"
|
||||
]
|
||||
|
@ -2,6 +2,10 @@
|
||||
name = "sea_battle_backend"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
license = "GPL-2.0-or-later"
|
||||
description = "A Sea Battle game backend server"
|
||||
repository = "https://gitea.communiquons.org/pierre/SeaBattle"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
5
rust/sea_battle_backend/README.md
Normal file
5
rust/sea_battle_backend/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Sea battle backend
|
||||
|
||||
A backend server for the Sea Battle game.
|
||||
|
||||
A command-line client is available in the `sea_battle_cli_player` crate.
|
@ -1,7 +1,11 @@
|
||||
[package]
|
||||
name = "cli_player"
|
||||
name = "sea_battle_cli_player"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
license = "GPL-2.0-or-later"
|
||||
description = "A Sea Battle game shell client"
|
||||
repository = "https://gitea.communiquons.org/pierre/SeaBattle"
|
||||
readme = "README.md"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
3
rust/sea_battle_cli_player/README.md
Normal file
3
rust/sea_battle_cli_player/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Sea battle player
|
||||
|
||||
A sea battle shell client player for the `sea_battle_backend` crate.
|
@ -12,20 +12,22 @@ use env_logger::Env;
|
||||
use tui::backend::{Backend, CrosstermBackend};
|
||||
use tui::Terminal;
|
||||
|
||||
use cli_player::cli_args::{cli_args, TestDevScreen};
|
||||
use cli_player::client::Client;
|
||||
use cli_player::server::run_server;
|
||||
use cli_player::ui_screens::configure_game_rules::GameRulesConfigurationScreen;
|
||||
use cli_player::ui_screens::game_screen::GameScreen;
|
||||
use cli_player::ui_screens::input_screen::InputScreen;
|
||||
use cli_player::ui_screens::popup_screen::PopupScreen;
|
||||
use cli_player::ui_screens::select_play_mode_screen::{SelectPlayModeResult, SelectPlayModeScreen};
|
||||
use cli_player::ui_screens::*;
|
||||
use sea_battle_backend::consts::{
|
||||
INVITE_CODE_LENGTH, MAX_PLAYER_NAME_LENGTH, MIN_PLAYER_NAME_LENGTH,
|
||||
};
|
||||
use sea_battle_backend::data::GameRules;
|
||||
use sea_battle_backend::utils::res_utils::Res;
|
||||
use sea_battle_cli_player::cli_args::{cli_args, TestDevScreen};
|
||||
use sea_battle_cli_player::client::Client;
|
||||
use sea_battle_cli_player::server::run_server;
|
||||
use sea_battle_cli_player::ui_screens::configure_game_rules::GameRulesConfigurationScreen;
|
||||
use sea_battle_cli_player::ui_screens::game_screen::GameScreen;
|
||||
use sea_battle_cli_player::ui_screens::input_screen::InputScreen;
|
||||
use sea_battle_cli_player::ui_screens::popup_screen::PopupScreen;
|
||||
use sea_battle_cli_player::ui_screens::select_play_mode_screen::{
|
||||
SelectPlayModeResult, SelectPlayModeScreen,
|
||||
};
|
||||
use sea_battle_cli_player::ui_screens::*;
|
||||
|
||||
/// Test code screens
|
||||
async fn run_dev<B: Backend>(
|
Loading…
Reference in New Issue
Block a user