Struct minutus::MRubyManager
source · pub struct MRubyManager { /* private fields */ }
Expand description
Helper for building and linking libmruby.
Implementations§
source§impl MRubyManager
impl MRubyManager
sourcepub fn new() -> MRubyManager
pub fn new() -> MRubyManager
Construct a new instance of a blank set of configuration. This builder is finished with the run function.
sourcepub fn workdir(self, path: &Path) -> MRubyManager
pub fn workdir(self, path: &Path) -> MRubyManager
Set workdir. The default is "OUT_DIR"
environment variable.
sourcepub fn mruby_version(self, mruby_version: &str) -> MRubyManager
pub fn mruby_version(self, mruby_version: &str) -> MRubyManager
Set mruby version.
sourcepub fn build_config(self, build_config: &Path) -> MRubyManager
pub fn build_config(self, build_config: &Path) -> MRubyManager
Set custom build_config.rb
. If not set, the builder uses mruby’s default config.
sourcepub fn link(self, doit: bool) -> MRubyManager
pub fn link(self, doit: bool) -> MRubyManager
Whether the builder should build/link libmruby.a
or not. The default is true
.
If set to false
, builder does not build nor link libmruby. So you have to do it by yourself.
If you embed mruby into your Rust project, this should be true
.
sourcepub fn download(self, doit: bool) -> MRubyManager
pub fn download(self, doit: bool) -> MRubyManager
Whether the builder should internally download mruby source code or not. The default is true
.
If set to false
you have to place $OUT_DIR/mruby
by yourself.
Auto Trait Implementations§
impl RefUnwindSafe for MRubyManager
impl Send for MRubyManager
impl Sync for MRubyManager
impl Unpin for MRubyManager
impl UnwindSafe for MRubyManager
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more