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 Freeze for MRubyManager
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