Struct minutus::MRubyManager
source · [−]pub struct MRubyManager { /* private fields */ }
Expand description
Helper for building and linking libmruby.
Implementations
sourceimpl 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. The default is "3.1.0"
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more