I'm using sokol-rust as a dependency in an application. I have the latest commit to master, as shown in my cargo.lock:
[[package]]
name = "sokol"
version = "0.1.0"
source = "git+https://github.com/floooh/sokol-rust.git#0c3ee4d0aa851f9d7a50e3bd5426d9fd95fda72d"
dependencies = [
"cc",
]
The project compiles fine when targeting native (Windows and Mac). However, when running cargo build --target wasm32-unknown-emscripten, I get wasm-ld errors:
I'm using sokol-rust as a dependency in an application. I have the latest commit to master, as shown in my cargo.lock:
The project compiles fine when targeting native (Windows and Mac). However, when running
cargo build --target wasm32-unknown-emscripten
, I getwasm-ld
errors:Creating a build.rs in my project with the following fixes the the errors:
But this was already added to sokol-rust, so I don't understand why it's required in my project as well.