Skip to content

Commit 9ce60ec

Browse files
dcabahawkw
authored andcommitted
fix(console): declare tokio-console bin as default-run (#379)
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)
1 parent 652ac34 commit 9ce60ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tokio-console/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ edition = "2021"
77
rust-version = "1.58.0"
88
authors = ["Eliza Weisman <eliza@buoyant.io>", "Tokio Contributors <team@tokio.rs>",]
99
readme = "README.md"
10+
default-run = "tokio-console"
1011
homepage = "https://github.com/tokio-rs/console/tree/main/tokio-console"
1112
description = """
1213
The Tokio console: a debugger for async Rust.

0 commit comments

Comments
 (0)