diff --git a/Cargo.toml b/Cargo.toml index 6792d64..19ed968 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,10 @@ edition = "2021" crate-type = ["cdylib"] [[example]] +# crate-type can't be (at the moment) be overriden for specific targets +# src/wasm_lib.rs forwards to src/lib.rs so that we can change from cdylib +# (that is needed while compiling natively) to staticlib (needed since the +# actual linking will be done via emcc name = "rusty_quack" path = "src/wasm_lib.rs" crate-type = ["staticlib"]