diff options
| -rw-r--r-- | .builds/rust.yml | 7 | ||||
| -rw-r--r-- | CLI/rust/CHANGELOG.md | 6 | ||||
| -rw-r--r-- | CLI/rust/Cargo.lock | 26 | ||||
| -rw-r--r-- | CLI/rust/Cargo.toml | 8 | ||||
| -rw-r--r-- | CLI/rust/README.md | 15 |
5 files changed, 41 insertions, 21 deletions
diff --git a/.builds/rust.yml b/.builds/rust.yml index d7cceb7..1425e48 100644 --- a/.builds/rust.yml +++ b/.builds/rust.yml @@ -7,6 +7,10 @@ packages: sources: - https://git.sr.ht/~a14m/game-of-life +secrets: + # RUST CRATES.IO CREDENTIALS + - 3e602cae-1563-4a6a-ab2a-c782c68bd599 + tasks: - install: | curl https://sh.rustup.rs -sSf | sh -s -- -y @@ -25,12 +29,13 @@ tasks: - release: | set +x - cd game-of-life/CLI/rust REF=`git describe --exact-match --tags HEAD ||:` if [[ ! `echo $REF | awk '/^rust\/v.*$/'` ]]; then echo "Skipping release step. no matching tag" exit 0 fi echo "Publishing release $REF" + cd game-of-life/CLI/rust source $HOME/.cargo/env cargo build --release + cargo publish diff --git a/CLI/rust/CHANGELOG.md b/CLI/rust/CHANGELOG.md new file mode 100644 index 0000000..cffbb35 --- /dev/null +++ b/CLI/rust/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +## Unreleased + +## 0.1.0-alpha +- Initial implementation of the CLI `-i file.txt` option and release. diff --git a/CLI/rust/Cargo.lock b/CLI/rust/Cargo.lock index eeade1f..841b96e 100644 --- a/CLI/rust/Cargo.lock +++ b/CLI/rust/Cargo.lock @@ -120,19 +120,6 @@ dependencies = [ ] [[package]] -name = "game-of-life" -version = "0.1.0" -dependencies = [ - "clap", - "ctrlc", - "curl", - "mocktopus", - "rand", - "regex", - "terminal_size", -] - -[[package]] name = "getrandom" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -423,6 +410,19 @@ dependencies = [ ] [[package]] +name = "terminal_game_of_life" +version = "0.1.0-alpha" +dependencies = [ + "clap", + "ctrlc", + "curl", + "mocktopus", + "rand", + "regex", + "terminal_size", +] + +[[package]] name = "terminal_size" version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/CLI/rust/Cargo.toml b/CLI/rust/Cargo.toml index 58c2250..41aff9e 100644 --- a/CLI/rust/Cargo.toml +++ b/CLI/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "game-of-life" -version = "0.1.0" +name = "terminal_game_of_life" +version = "0.1.0-alpha" authors = ["a14m <[email protected]>"] edition = "2018" description = "Conway's game of life implementation as a CLI rust crate" @@ -9,6 +9,10 @@ homepage = "https://git.sr.ht/~a14m/game-of-life/tree/master/CLI/rust/README.md" repository = "https://git.sr.ht/~a14m/game-of-life/tree/master/CLI/rust" license = "MIT" +[[bin]] +name = "game-of-life" +path = "src/main.rs" + [dependencies] clap = { version = "3.0.0-beta.2", features = ["wrap_help"] } curl = "0.4.35" diff --git a/CLI/rust/README.md b/CLI/rust/README.md index 471ea5d..f5a1ffa 100644 --- a/CLI/rust/README.md +++ b/CLI/rust/README.md @@ -3,7 +3,9 @@ The implementation of the [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) rust package ## Installation -TBD +```bash +$ cargo install terminal_game_of_life +``` ## Usage @@ -55,9 +57,12 @@ Run `cargo +nightly test` Run `cargo doc` ## Release -TBD +- Update the [version](./Cargo.toml) number +- Run `cargo build --release` and commit changes +- Update the [CHANGELOG](./CHANGELOG.md) +- Create a git tag `rust/v#{version_number}` ex: `rust/v0.1.1-pre` ## Extra information -### [Contributing](https://gitlab.com/a14m/game-of-life/-/blob/master/CONTRIBUTING.md) -### [License](https://gitlab.com/a14m/game-of-life/-/blob/master/LICENSE.md) -### [Code of Conduct](https://gitlab.com/a14m/game-of-life/-/blob/master/CODE_OF_CONDUCT.md) +### [Contributing](../../CONTRIBUTING.md) +### [License](../../LICENSE.md) +### [Code of Conduct](../../CODE_OF_CONDUCT.md) |
