diff --git a/Cargo.lock b/Cargo.lock index a3ed1c93..a0e2a111 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -709,10 +709,11 @@ dependencies = [ [[package]] name = "cargo-playdate" -version = "0.4.3" +version = "0.4.4" dependencies = [ "anstyle", "anyhow", + "async-std", "byteorder", "cargo", "cargo-platform", diff --git a/cargo/Cargo.toml b/cargo/Cargo.toml index f3ea1bf7..a535e39b 100644 --- a/cargo/Cargo.toml +++ b/cargo/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-playdate" -version = "0.4.3" +version = "0.4.4" readme = "README.md" description = "Build tool for neat yellow console." keywords = ["playdate", "build", "cargo", "plugin", "cargo-subcommand"] @@ -53,6 +53,7 @@ env_logger.workspace = true log.workspace = true futures-lite.workspace = true +async-std = { version = "1.12", features = ["tokio1"] } [dependencies.build] diff --git a/cargo/src/main.rs b/cargo/src/main.rs index cbd6222c..3a553b41 100644 --- a/cargo/src/main.rs +++ b/cargo/src/main.rs @@ -203,7 +203,6 @@ fn execute(config: &Config) -> CargoResult<()> { // run: { - use futures_lite::future::block_on; use device::run::run as run_dev; use simulator::run::run as run_sim; @@ -212,12 +211,12 @@ fn execute(config: &Config) -> CargoResult<()> { let pdx = package.path.to_owned(); let no_install = false; let no_read = config.no_read; - let force = false; + let force = true; let fut = run_dev(query, pdx, no_install, no_read, force); - block_on(fut)?; + async_std::task::block_on(fut)?; } else { let fut = run_sim(&package.path, config.sdk_path.as_deref()); - block_on(fut)?; + futures_lite::future::block_on(fut)?; }; }