Crate agnostic_process

Source
Expand description

Agnostic Process

Agnostic abstraction layer of std::process for any async runtime.

github LoC Build codecov

docs.rs crates.io crates.io license

§Introduction

Agnostic abstraction layer of std::process for any async runtime.

Builtin supports runtimes:

  • tokio
  • async-std
  • smol

§Installation

[dependencies]
agnostic-process = "0.1"
  • tokio

    agnostic-process = { version = "0.1", features = ["tokio"] }
  • smol

    agnostic-process = { version = "0.1", features = ["smol"] }
  • async-std

    agnostic-process = { version = "0.1", features = ["async-std"] }
§License

agnostic-process is under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2025 Al Liu.

Re-exports§

pub use agnostic_io as io;

Structs§

ChildStderr
A handle to a child process’s standard error (stderr).
ChildStdin
A handle to a child process’s standard input (stdin).
ChildStdout
A handle to a child process’s standard output (stdout).

Traits§

Child
An abstraction of a spawned child process.
Command
An abstraction of a builder for spawning processes.
IntoStdio
A trait for converting into a Stdio.
Process
Trait for spawning a child process.
Stderr
Marker trait for the standard error (stderr) handle of a child process.
Stdin
Marker trait for the standard input (stdin) handle of a child process.
Stdout
Marker trait for the standard output (stdout) handle of a child process.