pub enum BuildCommand {
Cargo {
subcommand: String,
args: Vec<String>,
},
Npm {
manager: String,
subcommand: String,
args: Vec<String>,
},
Pip {
subcommand: String,
args: Vec<String>,
},
Gem {
subcommand: String,
args: Vec<String>,
},
Go {
subcommand: String,
args: Vec<String>,
},
Make {
target: String,
env: IndexMap<String, String>,
},
Copy {
from: String,
to: String,
},
Mkdir {
path: String,
},
Symlink {
target: String,
link_name: String,
},
Native {
program: String,
args: Vec<String>,
},
}Expand description
Declarative build command — NOT raw shell. Renderers translate
to the build system’s preferred shape (Nix derivation phases,
Bazel genrule, …).
Variants§
Cargo
A typed cargo invocation: cargo build --release etc.
Npm
A typed npm/pnpm/yarn invocation.
Pip
A typed pip invocation.
Gem
A typed gem invocation.
Go
A typed go invocation.
Make
A typed make-shaped target.
Copy
A typed file copy step (Fetch / Install phase).
Mkdir
A typed mkdir step.
Symlink
A typed symlink step.
Native
Adapter-supplied native command — used as the last resort when the typed variants don’t cover it. Renderer is expected to translate, not pass through raw.
Trait Implementations§
Source§impl Clone for BuildCommand
impl Clone for BuildCommand
Source§fn clone(&self) -> BuildCommand
fn clone(&self) -> BuildCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildCommand
impl Debug for BuildCommand
Source§impl<'de> Deserialize<'de> for BuildCommand
impl<'de> Deserialize<'de> for BuildCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BuildCommand
impl PartialEq for BuildCommand
Source§fn eq(&self, other: &BuildCommand) -> bool
fn eq(&self, other: &BuildCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BuildCommand
impl Serialize for BuildCommand
impl Eq for BuildCommand
impl StructuralPartialEq for BuildCommand
Auto Trait Implementations§
impl Freeze for BuildCommand
impl RefUnwindSafe for BuildCommand
impl Send for BuildCommand
impl Sync for BuildCommand
impl Unpin for BuildCommand
impl UnsafeUnpin for BuildCommand
impl UnwindSafe for BuildCommand
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.