New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdweb always included as a dependency no matter the platform #243
Comments
Could you check your |
it's coming from cpal but let me double check with a simpler example just in case |
with a new project and no other dependencies but cpal and building in linux 64 (using nightly in case it makes any difference): Cargo.toml: [package]
name = "test_cpal"
version = "0.1.0"
authors = ["arturo castro <arturo@openframeworks.cc>"]
[dependencies]
cpal="*" Cargo.lock:
|
I think the dependency is always present in the |
yeah i imagine since there's also stuff like winapi and coreaudio in linux but i was getting undefined symbols for emscripten functions so it was definitely being included. in any case this only happens when compiling a dynamic library so it's a pretty obscure case |
This is probably a bug in cargo but stdweb always gets included as a dependency of this crate. It's usually ok unless you try to compile a dynamic library including this crate in which case the resulting binary will have dependencies with emscripten and fail to load.
Adding an stdweb feature to optionally use stdweb when compiling for the web should solve the problem until cargo does the right thing
The text was updated successfully, but these errors were encountered: