Skip to content

Commit

Permalink
fix(console): declare tokio-console bin as default-run (#379)
Browse files Browse the repository at this point in the history
Currently, the documented `cargo-run` in README no longer works, as now
there are two binaries:

```console
$ cargo run
error: `cargo run` could not determine which binary to run. Use the `--bin` option t
o specify a binary, or the `default-run` manifest key.
available binaries: tokio-console, xtask
```

This branch declares the `tokio-console` binary as the [`default-run`]
value in the `Cargo.toml`, so it is now run by default by `cargo run`.

Alternatively, we can just update the README line with `cargo run --bin
tokio-console`

[`default-run`]:
    (https://doc.rust-lang.org/cargo/reference/manifest.html#the-default-run-field)
  • Loading branch information
dcaba committed Sep 21, 2022
1 parent da0e972 commit 40f7971
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio-console/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ edition = "2021"
rust-version = "1.58.0"
authors = ["Eliza Weisman <eliza@buoyant.io>", "Tokio Contributors <team@tokio.rs>",]
readme = "README.md"
default-run = "tokio-console"
homepage = "https://github.com/tokio-rs/console/tree/main/tokio-console"
description = """
The Tokio console: a debugger for async Rust.
Expand Down

0 comments on commit 40f7971

Please sign in to comment.