Skip to content

Commit

Permalink
Add comment on example hack
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Nov 13, 2024
1 parent a0bb145 commit 48517b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 48517b4

Please sign in to comment.