#process #unix-stream #zygote

zygote

A zygote process is a small process used primarily to create new processes

3 releases

0.1.2 Jan 17, 2025
0.1.1 Dec 18, 2024
0.1.0 Dec 17, 2024

#569 in Parser implementations

Download history 55/week @ 2024-12-27 34/week @ 2025-01-10 363/week @ 2025-01-17 408/week @ 2025-01-24 606/week @ 2025-01-31 425/week @ 2025-02-07 682/week @ 2025-02-14 553/week @ 2025-02-21 481/week @ 2025-02-28 547/week @ 2025-03-07 160/week @ 2025-03-14 421/week @ 2025-03-21 414/week @ 2025-03-28 270/week @ 2025-04-04 233/week @ 2025-04-11

1,427 downloads per month
Used in 3 crates

Apache-2.0

36KB
744 lines

zygote

zygote is a library to create zygote processes on linux. A zygote process is a small process used primarily to create new processes, but can be used for anything that requires running things in a separate process.

To learn more about zygote processes check out these notes on Chromium.

Getting started

use zygote::Zygote;
fn main() {
    Zygote::init();
    let pid = Zygote::global().run(|_| std::process::id(), ());
    assert_ne!(pid, std::process::id());
}

Dependencies

~2.2–3MB
~64K SLoC