Page MenuHomePhorge

main.rs
No OneTemporary

Size
380 B
Referenced Files
None
Subscribers
None
#[cxx::bridge]
mod cmd {
unsafe extern "C++" {
include!("pmc/src/include/cmd.h");
fn run_command(name: &str, log_path: &str, command: &str) -> u64;
}
}
fn main() {
let name = "example";
let log_path = "tests/logs";
let command = "node tests/index.js";
let pid = cmd::run_command(&name, &log_path, &command);
println!("pid: {pid}");
}

File Metadata

Mime Type
text/x-c
Expires
Mon, Feb 2, 2:17 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
493896
Default Alt Text
main.rs (380 B)

Event Timeline