From 465c4e2301ec9dc58a1b204791a37bcf7a1cd9bd Mon Sep 17 00:00:00 2001 From: a14m Date: Wed, 31 Mar 2021 19:46:02 +0200 Subject: Update dev dependencies and README --- CLI/rust/Cargo.lock | 13 +++++++++++++ CLI/rust/Cargo.toml | 3 ++- CLI/rust/README.md | 11 ++++++++--- 3 files changed, 23 insertions(+), 4 deletions(-) (limited to 'CLI/rust') diff --git a/CLI/rust/Cargo.lock b/CLI/rust/Cargo.lock index 3d80c97..5c97dd6 100644 --- a/CLI/rust/Cargo.lock +++ b/CLI/rust/Cargo.lock @@ -37,6 +37,7 @@ dependencies = [ "os_str_bytes", "strsim", "termcolor", + "terminal_size", "textwrap", "unicode-width", "vec_map", @@ -60,6 +61,7 @@ name = "game-of-life" version = "0.1.0" dependencies = [ "clap", + "terminal_size", ] [[package]] @@ -182,12 +184,23 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "terminal_size" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86ca8ced750734db02076f44132d802af0b33b09942331f4459dde8636fd2406" +dependencies = [ + "libc", + "winapi", +] + [[package]] name = "textwrap" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "203008d98caf094106cfaba70acfed15e18ed3ddb7d94e49baec153a2b462789" dependencies = [ + "terminal_size", "unicode-width", ] diff --git a/CLI/rust/Cargo.toml b/CLI/rust/Cargo.toml index 9de2ba5..a1a824c 100644 --- a/CLI/rust/Cargo.toml +++ b/CLI/rust/Cargo.toml @@ -5,4 +5,5 @@ authors = ["a14m "] edition = "2018" [dependencies] -clap = "3.0.0-beta.2" +clap = { version = "3.0.0-beta.2", features = ["wrap_help"] } +terminal_size = "0.1.16" diff --git a/CLI/rust/README.md b/CLI/rust/README.md index a66324d..d6e5de0 100644 --- a/CLI/rust/README.md +++ b/CLI/rust/README.md @@ -12,16 +12,21 @@ TBD TBD ## Development -TBD +- Install rustup via `curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh` +- Install rust stable version for development `rustup update` +- Install rust nightly for testing via `rustup install nightly` +- run `cargo build` to build the crate/CLI binaries. +- run `cargo run --` to run the built binaries. + ## Linting TBD ## Testing -TBD +Run `cargo +nightly test` ## Documentation -TBD +Run `cargo doc` ## Release TBD -- cgit v1.2.3