Skip to content

Commit c3fdc28

Browse files
example: Set default-run binary
1 parent 3ee22a7 commit c3fdc28

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

example/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "example"
33
version = "0.0.0"
44
authors = ["Paul Grandperrin <[email protected]>"]
5+
default-run = "example"
56

67
[[bin]]
78
name = "example"

example/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ RUSTFLAGS="" cargo build
8282

8383
# but when we run it, it should fail with a useful error message and status 17
8484
set +e
85-
RUSTFLAGS="" cargo run --bin example
85+
RUSTFLAGS="" cargo run
8686
status=$?
8787
set -e
8888
test $status -eq 17

0 commit comments

Comments
 (0)