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 authored and hawkw committed Sep 29, 2023
1 parent 652ac34 commit 9ce60ec
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 9ce60ec

Please sign in to comment.