#run-command #shell #api #error #binaries

ezexec

A simple API to execute binaries or shell commands via std::process::Command

6 releases (3 breaking)

0.4.1 Dec 31, 2022
0.4.0 Dec 31, 2022
0.3.0 Mar 16, 2022
0.2.0 Oct 4, 2021
0.1.1 Sep 18, 2021

#2550 in Rust patterns

Download history 15/week @ 2025-10-30 26/week @ 2025-11-06 16/week @ 2025-11-13 32/week @ 2025-11-20 29/week @ 2025-11-27 46/week @ 2025-12-04 11/week @ 2025-12-11 10/week @ 2025-12-18 9/week @ 2025-12-25 10/week @ 2026-01-01 7/week @ 2026-01-08 32/week @ 2026-01-15 34/week @ 2026-01-22 8/week @ 2026-01-29 45/week @ 2026-02-05 13/week @ 2026-02-12

107 downloads per month
Used in 2 crates

BSD-2-Clause OR MIT

20KB
406 lines

License BSD-2-Clause License MIT AppVeyor CI docs.rs crates.io Download numbers dependency status

ezexec

Welcome to ezexec 🎉

ezexec provides a simple API to execute binaries or shell commands. Furthermore it implements a trivial but usually good-enough API to find a binary in PATH or to get the current shell.

Example

use ezexec::{ ExecBuilder, error::Error };

fn list() -> Result<(), Error> {
    // Lists all files in the current directory and forwards the output to the parent's stdout
    ExecBuilder::with_shell("ls")?
        .spawn_transparent()?
        .wait()?;
    Ok(())
}

No runtime deps