2 releases
new 0.1.1 | Dec 18, 2024 |
---|---|
0.1.0 | Dec 17, 2024 |
#50 in #running
33 downloads per month
34KB
696 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());
}
lib.rs
:
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
fn main() {
Zygote::init();
let pid = Zygote::global().run(|_| std::process::id(), ());
assert_ne!(pid, std::process::id());
}
Dependencies
~2.2–3MB
~65K SLoC