diff options
| author | a14m <[email protected]> | 2021-03-31 19:46:02 +0200 |
|---|---|---|
| committer | a14m <[email protected]> | 2021-03-31 19:46:02 +0200 |
| commit | 465c4e2301ec9dc58a1b204791a37bcf7a1cd9bd (patch) | |
| tree | 9e6da0182e638e0d33aacefca3b9990c4d30a9f5 /CLI | |
| parent | cc7b7a975197cd0dd65414ed372278e2cd073db0 (diff) | |
Update dev dependencies and README
Diffstat (limited to 'CLI')
| -rw-r--r-- | CLI/rust/Cargo.lock | 13 | ||||
| -rw-r--r-- | CLI/rust/Cargo.toml | 3 | ||||
| -rw-r--r-- | CLI/rust/README.md | 11 |
3 files changed, 23 insertions, 4 deletions
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]] @@ -183,11 +185,22 @@ dependencies = [ ] [[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 <[email protected]>"] 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 |
