pub struct MRubyManager { /* private fields */ }Expand description
Helper for building and linking libmruby.
Implementations§
Source§impl MRubyManager
impl MRubyManager
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new instance of a blank set of configuration. This builder is finished with the run function.
Sourcepub fn workdir(self, path: &Path) -> Self
pub fn workdir(self, path: &Path) -> Self
Set workdir. The default is "OUT_DIR" environment variable.
Sourcepub fn mruby_version(self, mruby_version: &str) -> Self
pub fn mruby_version(self, mruby_version: &str) -> Self
Set mruby version.
Sourcepub fn build_config(self, build_config: &Path) -> Self
pub fn build_config(self, build_config: &Path) -> Self
Set custom build_config.rb. If not set, the builder uses mruby’s default config.
Sourcepub fn link(self, doit: bool) -> Self
pub fn link(self, doit: bool) -> Self
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.
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