pub enum Target {
Web,
Desktop,
}Expand description
The kind of platform a build is for.
Every build is for exactly one, and it decides two things: which
[target.<name>.dependencies] table is laid over [dependencies], and
which names a script’s compile-time conditions are true for.
Variants§
Web
A site, run by the browser runtime.
Desktop
A desktop app: lumenc run, build, bundle and package.
Implementations§
Source§impl Target
impl Target
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The name lumen.toml writes it as: [target.web], [target.desktop].
Sourcepub fn cfg_flags(self) -> &'static [&'static str]
pub fn cfg_flags(self) -> &'static [&'static str]
The names a script’s compile-time conditions are true for, when a program is compiled for this target.
This is the one place the set is written. The compile that honours a condition takes it from here, so a target that gains a name gains it everywhere at once.
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.