Skip to content

Commit 2c4022a

Browse files
committed
Add all runnable targets into README
1 parent a7c3033 commit 2c4022a

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
- name: Run Rustfmt
1919
run: cargo fmt -- --check
2020
- run: cargo run --bin chain-of-responsibility
21-
- run: cargo build --bin command # It needs rendering TUI
21+
- run: cargo build --bin command # TUI. It can run on the local machine.
2222
- run: cargo run --bin iterator
2323
- run: cargo run --bin mediator
2424
- run: cargo run --bin memento
2525
- run: cargo run --bin memento-serde
2626
- run: cargo run --bin observer
27-
- run: cargo build --bin state # It needs rendering TUI
27+
- run: cargo build --bin state # TUI. It can run on the local machine.
2828
- run: cargo run --bin strategy
2929
- run: cargo run --bin strategy-func
3030
- run: cargo run --bin template-method
@@ -38,7 +38,7 @@ jobs:
3838
- run: cargo run --bin simple-factory
3939
- run: cargo run --bin singleton
4040
- run: cargo run --bin singleton-lazy
41-
# - run: cargo run --bin singleton-mutex # It needs Rust 1.63
41+
# - run: cargo run --bin singleton-mutex # Requires Rust 1.63
4242
- run: cargo run --bin static-creation-method
4343
- run: cargo run --bin adapter
4444
- run: cargo run --bin bridge

README.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ All examples can be launched via the command line, using `cargo` as follows:
2626
cargo run --bin adapter
2727
```
2828

29-
👉 You can find ALL targets in [.github/workflows/test.yml](.github/workflows/test.yml).
30-
3129
Each target name can be found in `Cargo.toml` of each example:
3230

3331
```toml
@@ -38,7 +36,42 @@ path = "main.rs"
3836

3937
Also, the examples contain a **README.md** with instructions and additional explanations.
4038

41-
## 💡 Overview
39+
## ✅ List of Examples
40+
41+
```bash
42+
cargo run --bin chain-of-responsibility
43+
cargo run --bin command
44+
cargo run --bin iterator
45+
cargo run --bin mediator
46+
cargo run --bin memento
47+
cargo run --bin memento-serde
48+
cargo run --bin observer
49+
cargo run --bin state
50+
cargo run --bin strategy
51+
cargo run --bin strategy-func
52+
cargo run --bin template-method
53+
cargo run --bin visitor
54+
cargo run --bin abstract-factory
55+
cargo run --bin abstract-factory-dyn
56+
cargo run --bin builder
57+
cargo run --bin factory-method-maze-game
58+
cargo run --bin factory-method-render-dialog
59+
cargo run --bin prototype
60+
cargo run --bin simple-factory
61+
cargo run --bin singleton
62+
cargo run --bin singleton-lazy
63+
cargo run --bin singleton-mutex # Requires Rust 1.63
64+
cargo run --bin static-creation-method
65+
cargo run --bin adapter
66+
cargo run --bin bridge
67+
cargo run --bin composite
68+
cargo run --bin decorator
69+
cargo run --bin facade
70+
cargo run --bin flyweight
71+
cargo run --bin proxy
72+
```
73+
74+
## 💡 Notes
4275

4376
Interestingly, in Rust:
4477

0 commit comments

Comments
 (0)