Struct papyrus::Script[][src]

pub struct Script { /* fields omitted */ }

Methods

impl Script
[src]

Constructs the compile directory with the given main source file contents. Expects SourceFileType::Rs to define a main() function. SourceFileType::Rscript will encase code in a main() function.

Runs cargo build, then runs the exe from the given directory. Stdin and Stdout are inherited (allowing live updating of progress). Waits for process to finish and returns the Output of the process.

Auto Trait Implementations

impl Send for Script

impl Sync for Script