Skip to content

Commit

Permalink
Make cargo run use zebrad by default
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
teor2345 authored and yaahc committed Jan 8, 2021
1 parent f222a68 commit 40c427c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zebrad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit 40c427c

Please sign in to comment.