pub struct LinkOptions {
pub debug: bool,
pub source: bool,
pub extra: Vec<String>,
pub host: Vec<String>,
}Expand description
What a link is asked for beyond the entry file: how modules are stored, and which ones the walk would otherwise miss or must not take.
Owned and Default, and it crosses the proc-macro boundary as a value — the borrowed
half of a link’s inputs is LinkStore.
Fields§
§debug: boolKeep debug info (line numbers, local names) in bytecode. Off = stripped.
source: boolStore generated Lua source instead of bytecode (portable across Lua builds).
extra: Vec<String>Modules to include even if no literal require reaches them.
host: Vec<String>Modules the host provides at run time, besides those declared only by a .d.tl.
A name here is left out of the bundle and not walked, whether or not a file on
the search path could answer it — a library that bundles its own module names it
here in the binary’s bundle so the two do not carry it twice.
Trait Implementations§
Source§impl Clone for LinkOptions
impl Clone for LinkOptions
Source§fn clone(&self) -> LinkOptions
fn clone(&self) -> LinkOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LinkOptions
impl Debug for LinkOptions
Source§impl Default for LinkOptions
impl Default for LinkOptions
Source§fn default() -> LinkOptions
fn default() -> LinkOptions
Auto Trait Implementations§
impl Freeze for LinkOptions
impl RefUnwindSafe for LinkOptions
impl Send for LinkOptions
impl Sync for LinkOptions
impl Unpin for LinkOptions
impl UnsafeUnpin for LinkOptions
impl UnwindSafe for LinkOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more