pub enum WasmCc {
Env(String),
PathClang,
Fallback(PathBuf),
Missing,
}Expand description
How a web-dom build gets the C compiler for its cc-built dependencies (day-sqlite-worker’s
bundled SQLite), resolved by wasm_cc.
Variants§
Env(String)
A cc-rs compiler variable is set. cc-rs will run this program whatever it is, so the resolver reports it unprobed and callers must not override it.
PathClang
Plain clang on PATH has the wasm32 backend — cc-rs’s default works untouched.
Fallback(PathBuf)
A wasm-capable clang found outside PATH. Callers export it as
CC_wasm32_unknown_unknown on the cargo child process for cc-rs to use it.
Missing
No compiler with the backend anywhere; a persistence web build will fail in cc-rs.
Trait Implementations§
impl Eq for WasmCc
impl StructuralPartialEq for WasmCc
Auto Trait Implementations§
impl Freeze for WasmCc
impl RefUnwindSafe for WasmCc
impl Send for WasmCc
impl Sync for WasmCc
impl Unpin for WasmCc
impl UnsafeUnpin for WasmCc
impl UnwindSafe for WasmCc
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