pub struct BuildParams { /* private fields */ }Expand description
Build parameters for build_crate_memoized.
Implementations§
Source§impl BuildParams
impl BuildParams
Sourcepub fn new(
src: impl AsRef<Path>,
bin: Option<String>,
example: Option<String>,
profile: Option<String>,
rustflags: Option<String>,
target_dir: Option<PathBuf>,
build_env: Vec<(String, String)>,
no_default_features: bool,
target_type: HostTargetType,
features: Option<Vec<String>>,
config: Vec<String>,
) -> Self
pub fn new( src: impl AsRef<Path>, bin: Option<String>, example: Option<String>, profile: Option<String>, rustflags: Option<String>, target_dir: Option<PathBuf>, build_env: Vec<(String, String)>, no_default_features: bool, target_type: HostTargetType, features: Option<Vec<String>>, config: Vec<String>, ) -> Self
Creates a new BuildParams and canonicalizes the src path.
Trait Implementations§
Source§impl Clone for BuildParams
impl Clone for BuildParams
Source§fn clone(&self) -> BuildParams
fn clone(&self) -> BuildParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Hash for BuildParams
impl Hash for BuildParams
Source§impl PartialEq for BuildParams
impl PartialEq for BuildParams
impl Eq for BuildParams
impl StructuralPartialEq for BuildParams
Auto Trait Implementations§
impl Freeze for BuildParams
impl RefUnwindSafe for BuildParams
impl Send for BuildParams
impl Sync for BuildParams
impl Unpin for BuildParams
impl UnwindSafe for BuildParams
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<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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].