You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.map_or(false, |types| types.iter().any(|s| s == "cdylib"))
189
192
}){
190
-
returnOk(());
193
+
Ok(())
194
+
}else{
195
+
let msg = "crate-type must be cdylib to compile to wasm32-unknown-unknown. Add the following to your Cargo.toml file:\n\n[lib]\ncrate-type = [\"cdylib\"]";
196
+
let e = Error::crate_config(msg);
197
+
Err(e)
191
198
}
192
-
Error::crate_config(
193
-
"crate-type must be cdylib to compile to wasm32-unknown-unknown. Add the following to your Cargo.toml file:\n\n[lib]\ncrate-type = [\"cdylib\"]"
0 commit comments