From 48517b4ff514bce13f7e275311a5bbe25e1b7efc Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Wed, 13 Nov 2024 10:42:42 +0100 Subject: [PATCH] Add comment on example hack --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) 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"]