mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-03 18:50:02 +00:00
Investigate incorrect target detection (#1376)
* detect-targets: add debug tracing See #1375. * Add new feature `tracing` & `cli-tracing` to `detect-targets Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix clippy lints Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
680accd0d3
commit
2db8e254bc
7 changed files with 49 additions and 12 deletions
|
@ -4,6 +4,12 @@ use detect_targets::detect_targets;
|
|||
use tokio::runtime;
|
||||
|
||||
fn main() -> io::Result<()> {
|
||||
#[cfg(feature = "cli-logging")]
|
||||
tracing_subscriber::fmt::fmt()
|
||||
.with_max_level(tracing::Level::TRACE)
|
||||
.with_writer(std::io::stderr)
|
||||
.init();
|
||||
|
||||
let targets = runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue