Skip to content

Commit 48517b4

Browse files
committed
Add comment on example hack
1 parent a0bb145 commit 48517b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ edition = "2021"
77
crate-type = ["cdylib"]
88

99
[[example]]
10+
# crate-type can't be (at the moment) be overriden for specific targets
11+
# src/wasm_lib.rs forwards to src/lib.rs so that we can change from cdylib
12+
# (that is needed while compiling natively) to staticlib (needed since the
13+
# actual linking will be done via emcc
1014
name = "rusty_quack"
1115
path = "src/wasm_lib.rs"
1216
crate-type = ["staticlib"]

0 commit comments

Comments
 (0)