Make `cargo run` use `zebrad` by default

When `cargo run` is run in the workspace directory, it can see two
executables:
- `zebrad`
- `zebra_checkpoints`

Adding `default-run = "zebrad"` to `zebrad/Cargo.toml` makes the
workspace run `zebrad` by default. (Even though it's redundant for the
`zebrad` crate itself.)
This commit is contained in:
teor 2021-01-08 17:07:23 +10:00 committed by Jane Lusby
parent f222a6805b
commit 40c427cf7c
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ license = "MIT OR Apache-2.0"
version = "1.0.0-alpha.0"
edition = "2018"
repository = "https://github.com/ZcashFoundation/zebra"
# make `cargo run` use `zebrad` by default
# when run in the workspace directory
default-run = "zebrad"
[dependencies]
zebra-chain = { path = "../zebra-chain" }