Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cargo run use zebrad by default #1569

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Jan 8, 2021

Motivation

When cargo run is run in the workspace directory, it can see two executables:

  • zebrad
  • zebra_checkpoints

So it exits with an error, and asks the user to choose one of them.

But zebrad should be the default - most users don't care about zebra_checkpoints.

Solution

Adding default-run = "zebrad" to zebrad/Cargo.toml makes the workspace run zebrad by default.
(default-run is redundant for thezebrad crate itself.)

Review

I think @yaahc knows more about cargo.
This change can be merged at any time.

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.)
@teor2345 teor2345 added the C-bug Category: This is a bug label Jan 8, 2021
@teor2345 teor2345 requested a review from yaahc January 8, 2021 07:40
@teor2345 teor2345 self-assigned this Jan 8, 2021
@yaahc
Copy link
Contributor

yaahc commented Jan 8, 2021

TIL default-run exists, cool. Looks great

@yaahc yaahc merged commit 40c427c into ZcashFoundation:main Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants