Created
November 24, 2018 10:27
-
-
Save sseemayer/6f6f66bd87c2aba0d544e0e28934f1a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "quicksilver-test" | |
| version = "0.1.0" | |
| authors = ["Stefan Seemayer <mail+quicksilver.test@semicolonsoftware.de>"] | |
| edition = "2018" | |
| [dependencies] | |
| quicksilver = "*" | |
| specs-derive = "0.3.0" | |
| [target.'cfg(target_arch = "wasm32")'.dependencies] | |
| specs = {version = "0.14.0", default-features = false} | |
| [target.'cfg(not(target_arch = "wasm32"))'.dependencies] | |
| specs = {version = "0.14.0"} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to disable the
parallelfeature for thespecscrate when compiling towasm32. It seems that the configuration for non-wasm32 somehow bleeds through even when compiling towasm32:If I remove lines 14 and 15, I can compile fine for wasm32 with
paralleldisabled but cannotcargo runnormally since the specs crate is missing.If I compile using the
Cargo.tomlas shown above, I cancargo runwithparallelenabled but thecargo web runwasm32-unknown-unknowntarget will crash when trying to allocate a thread pool inspecs.Am I doing something wrong in how I am defining the features and dependencies?