Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2708958
main.rs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
380 B
Referenced Files
None
Subscribers
None
main.rs
View Options
#[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
Details
Attached
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)
Attached To
Mode
rPMC Process Management Controller
Attached
Detach File
Event Timeline
Log In to Comment