Commit 9e60a04
rename "examples" to "demos" to avoid confusion with Cargo examples
I got confused because I tried to run the player with:
cargo run --examples demo_player
However this did not work because demo_player is structured as a
subcrate in a workspace, not as an example. Cargo examples do not
have a src directory nor their own Cargo.toml:
https://doc.rust-lang.org/cargo/guide/project-layout.html
Unfortunately there is no way to specify dependencies only for an
example. There is an open RFC for that:
rust-lang/rfcs#2887
So for now, I think it is best to leave the demo applications as
subcrates in a workspace, but rename the "examples" directory to
"demos" so people don't think they will work with
cargo run --examples1 parent 38d00bd commit 9e60a04
File tree
15 files changed
+6
-6
lines changed- demos
- player
- src
- writer
- src
15 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
File renamed without changes.
0 commit comments