pub struct BuildConfig {
pub tool: &'static str,
pub crate_suffix: &'static str,
pub build_dep: BuildDependency,
pub post_build: Vec<PostBuildStep>,
}Expand description
Build configuration for a language backend.
Fields§
§tool: &'static strBuild tool name (e.g., “napi”, “maturin”, “wasm-pack”, “cargo”, “mvn”, “dotnet”, “mix”).
crate_suffix: &'static strCrate suffix for Rust binding crate (e.g., “-node”, “-py”, “-wasm”, “-ffi”).
build_dep: BuildDependencyBuild-time dependency for this backend.
post_build: Vec<PostBuildStep>Post-processing steps to run after build.
Implementations§
Source§impl BuildConfig
impl BuildConfig
Sourcepub fn depends_on_ffi(&self) -> bool
pub fn depends_on_ffi(&self) -> bool
Returns whether this backend depends on the C FFI base (backwards compatibility).
Trait Implementations§
Source§impl Clone for BuildConfig
impl Clone for BuildConfig
Source§fn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
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 moreAuto Trait Implementations§
impl Freeze for BuildConfig
impl RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnsafeUnpin for BuildConfig
impl UnwindSafe for BuildConfig
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