[rs] Enable features in CI to prevent compiler errors

This commit is contained in:
Connor Fitzgerald 2020-07-26 01:02:57 -04:00
parent 26eb6c0882
commit 3eda1c5990
2 changed files with 5 additions and 5 deletions

View File

@ -19,18 +19,18 @@ jobs:
include:
- os: macos-10.15
wasm: false
CHECK_COMMAND: cargo check --all-targets --features vulkan-portability
CHECK_COMMAND: cargo check --all-targets --all-features
TEST_COMMAND: cargo test --all-targets --no-run
- os: ubuntu-18.04
wasm: false
CHECK_COMMAND: cargo check --all-targets
CHECK_COMMAND: cargo check --all-targets --all-features
TEST_COMMAND: cargo test --all-targets --no-run
- os: windows-2019
wasm: false
CHECK_COMMAND: rustup default stable-msvc && cargo check --all-targets
CHECK_COMMAND: rustup default stable-msvc && cargo check --all-targets --all-features
TEST_COMMAND: rustup default stable-msvc && cargo test --all-targets --no-run
- wasm: true
CHECK_COMMAND: rustup target add wasm32-unknown-unknown && cargo check --all-targets --target=wasm32-unknown-unknown
CHECK_COMMAND: rustup target add wasm32-unknown-unknown && cargo check --all-targets --all-features --target=wasm32-unknown-unknown
TEST_COMMAND: rustup target add wasm32-unknown-unknown && cargo test --all-targets --no-run --target=wasm32-unknown-unknown
RUSTFLAGS: --cfg=web_sys_unstable_apis
steps:

View File

@ -72,7 +72,7 @@ struct Setup {
}
async fn setup<E: Example>(title: &str) -> Setup {
#[cfg(feature = "subscriber")]
#[cfg(all(not(target_arch = "wasm32"), feature = "subscriber"))]
{
let chrome_tracing_dir = std::env::var("WGPU_CHROME_TRACE");
wgpu::util::initialize_default_subscriber(