From 01310c2547e47069c5847620dd3d5c571b45b69c Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Tue, 2 Apr 2024 20:19:02 +0400 Subject: [PATCH] fix inability to build pdtool release --- Cargo.lock | 2 +- support/tool/Cargo.toml | 5 +++-- support/tool/src/main.rs | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b1413b44..94fea4c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3603,7 +3603,7 @@ dependencies = [ [[package]] name = "playdate-tool" -version = "0.2.0" +version = "0.2.1" dependencies = [ "clap", "console-subscriber", diff --git a/support/tool/Cargo.toml b/support/tool/Cargo.toml index 0dafeb1b..08c2d2ec 100644 --- a/support/tool/Cargo.toml +++ b/support/tool/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "playdate-tool" -version = "0.2.0" +version = "0.2.1" readme = "README.md" description = "Tool for interaction with Playdate device and sim." keywords = ["playdate", "usb", "utility"] @@ -62,5 +62,6 @@ tracing = [ "simulator/tracing", ] -# Useful with [tokio-console](https://tokio.rs/tokio/topics/tracing-next-steps) +# Useful with `RUSTFLAGS="--cfg tokio_unstable"` & +# [tokio-console](https://tokio.rs/tokio/topics/tracing-next-steps) tokio-tracing = ["tracing", "tokio/tracing", "console-subscriber", "tracing"] diff --git a/support/tool/src/main.rs b/support/tool/src/main.rs index e82956d6..69055ccb 100644 --- a/support/tool/src/main.rs +++ b/support/tool/src/main.rs @@ -114,6 +114,7 @@ async fn main() -> miette::Result<()> { }, cli::Command::Send(cli::Send { command, query, read }) => send(query, command, read, cfg.format).await, + #[cfg(debug_assertions)] cli::Command::Debug(cli::Dbg { cmd, query }) => debug::debug(cmd, query).await, }.into_diagnostic() }