Add AsyncCommandExt, AsyncChildExt
#39
Draft
Garnix CI / check command-error-clippy [aarch64-darwin]
failed
Feb 24, 2026 in 3m 57s
check command-error-clippy [aarch64-darwin]
check command-error-clippy [aarch64-darwin] failed
Details
Last 100 lines of logs:
command-error-clippy-0.8.0> error[E0405]: cannot find trait `Future` in this scope
command-error-clippy-0.8.0> --> src/async_command_ext.rs:136:15
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 136 | ) -> impl Future<Output = Result<ExitStatus, Self::Error>> + Send + '_ {
command-error-clippy-0.8.0> | ^^^^^^ not found in this scope
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> help: consider importing this trait
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 4 + use std::future::Future;
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0>
command-error-clippy-0.8.0> error[E0433]: failed to resolve: use of undeclared crate or module `tokio`
command-error-clippy-0.8.0> --> src/async_command_ext.rs:155:31
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 155 | type Child = ChildContext<tokio::process::Child>;
command-error-clippy-0.8.0> | ^^^^^ use of undeclared crate or module `tokio`
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> help: consider importing this module
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 4 + use std::process;
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> help: if you import `process`, refer to it directly
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 155 - type Child = ChildContext<tokio::process::Child>;
command-error-clippy-0.8.0> 155 + type Child = ChildContext<process::Child>;
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0>
command-error-clippy-0.8.0> error[E0405]: cannot find trait `Future` in this scope
command-error-clippy-0.8.0> --> src/async_command_ext.rs:175:15
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 175 | ) -> impl Future<Output = Result<R, E>> + Send + '_
command-error-clippy-0.8.0> | ^^^^^^ not found in this scope
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> help: consider importing this trait
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 4 + use std::future::Future;
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0>
command-error-clippy-0.8.0> error[E0405]: cannot find trait `Future` in this scope
command-error-clippy-0.8.0> --> src/async_command_ext.rs:203:15
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 203 | ) -> impl Future<Output = Result<R, E>> + Send + '_
command-error-clippy-0.8.0> | ^^^^^^ not found in this scope
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> help: consider importing this trait
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 4 + use std::future::Future;
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0>
command-error-clippy-0.8.0> error[E0658]: async closures are unstable
command-error-clippy-0.8.0> --> src/async_child_ext.rs:119:13
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 119 | async move |context| match succeeded(context.status()).await {
command-error-clippy-0.8.0> | ^^^^^
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> = note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
command-error-clippy-0.8.0> = help: to use an async block, remove the `||`: `async {`
command-error-clippy-0.8.0>
command-error-clippy-0.8.0> error[E0658]: async closures are unstable
command-error-clippy-0.8.0> --> src/async_child_ext.rs:132:32
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> 132 | self.wait_checked_with(async |status| {
command-error-clippy-0.8.0> | ^^^^^
command-error-clippy-0.8.0> |
command-error-clippy-0.8.0> = note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
command-error-clippy-0.8.0> = help: to use an async block, remove the `||`: `async {`
command-error-clippy-0.8.0>
command-error-clippy-0.8.0> Some errors have detailed explanations: E0405, E0432, E0433, E0658.
command-error-clippy-0.8.0> For more information about an error, try `rustc --explain E0405`.
command-error-clippy-0.8.0> error: could not compile `command-error` (lib) due to 45 previous errors
command-error-clippy-0.8.0> warning: build failed, waiting for other jobs to finish...
command-error-clippy-0.8.0> error: could not compile `command-error` (lib test) due to 45 previous errors
last 25 log lines:
> |
>
> error[E0658]: async closures are unstable
> --> src/async_child_ext.rs:119:13
> |
> 119 | async move |context| match succeeded(context.status()).await {
> | ^^^^^
> |
> = note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
> = help: to use an async block, remove the `||`: `async {`
>
> error[E0658]: async closures are unstable
> --> src/async_child_ext.rs:132:32
> |
> 132 | self.wait_checked_with(async |status| {
> | ^^^^^
> |
> = note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
> = help: to use an async block, remove the `||`: `async {`
>
> Some errors have detailed explanations: E0405, E0432, E0433, E0658.
> For more information about an error, try `rustc --explain E0405`.
> error: could not compile `command-error` (lib) due to 45 previous errors
> warning: build failed, waiting for other jobs to finish...
> error: could not compile `command-error` (lib test) due to 45 previous errors
For full logs, run 'nix log /nix/store/v8bjarxrzvc6fj17f14dx1jaa7xnyx6w-command-error-clippy-0.8.0.drv'.
error: builder for '/nix/store/v8bjarxrzvc6fj17f14dx1jaa7xnyx6w-command-error-clippy-0.8.0.drv' failed with exit code 1
Loading