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>,
workspace_root: 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,
dylib_package: Option<String>,
features: Option<Vec<String>>,
config: Vec<String>,
) -> Self
pub fn new( src: impl AsRef<Path>, workspace_root: 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, dylib_package: Option<String>, 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
impl Eq for BuildParams
Source§impl Hash for BuildParams
impl Hash for BuildParams
Source§impl PartialEq for BuildParams
impl PartialEq for BuildParams
impl StructuralPartialEq for BuildParams
Auto Trait Implementations§
impl Forget for BuildParams
impl Freeze for BuildParamswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<String>: Freeze,
impl Move for BuildParams
impl RefUnwindSafe for BuildParams
impl Send for BuildParamswhere
RawVecInner: Send,
impl Sync for BuildParamswhere
RawVecInner: Sync,
impl Unpin for BuildParams
impl UnsafeUnpin for BuildParamswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for BuildParamswhere
RawVecInner: UnwindSafe,
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].