Created
November 24, 2018 10:27
-
-
Save sseemayer/6f6f66bd87c2aba0d544e0e28934f1a5 to your computer and use it in GitHub Desktop.
This file contains 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"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to disable the
parallel
feature for thespecs
crate 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
parallel
disabled but cannotcargo run
normally since the specs crate is missing.If I compile using the
Cargo.toml
as shown above, I cancargo run
withparallel
enabled but thecargo web run
wasm32-unknown-unknown
target will crash when trying to allocate a thread pool inspecs
.Am I doing something wrong in how I am defining the features and dependencies?