diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 977f90d3f96..8d6ec65f24e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,6 +11,12 @@ jobs: - template: ci/azure-install-rust.yml - script: cargo fmt --all -- --check + - job: cargo_check + displayName: "Run cargo check" + steps: + - template: ci/azure-install-rust.yml + - script: cargo check --all + - job: test_wasm_bindgen displayName: "Run wasm-bindgen crate tests (unix)" steps: diff --git a/examples/guide-supported-types-examples/Cargo.toml b/examples/guide-supported-types-examples/Cargo.toml index 5eb4a92a522..7936416f168 100644 --- a/examples/guide-supported-types-examples/Cargo.toml +++ b/examples/guide-supported-types-examples/Cargo.toml @@ -9,3 +9,4 @@ crate-type = ["cdylib"] [dependencies] wasm-bindgen = "0.2.74" +js-sys = "0.3.51" diff --git a/examples/guide-supported-types-examples/src/imported_types.rs b/examples/guide-supported-types-examples/src/imported_types.rs index 39d20d6b82f..1f0c390a8fc 100644 --- a/examples/guide-supported-types-examples/src/imported_types.rs +++ b/examples/guide-supported-types-examples/src/imported_types.rs @@ -1,6 +1,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] +#[derive(Copy, Clone, Debug)] pub enum NumberEnum { Foo = 0, Bar = 1, @@ -8,6 +9,7 @@ pub enum NumberEnum { } #[wasm_bindgen] +#[derive(Copy, Clone, Debug)] pub enum StringEnum { Foo = "foo", Bar = "bar", diff --git a/examples/webxr/src/lib.rs b/examples/webxr/src/lib.rs index de3c3f5df3d..7bc95d0e09e 100644 --- a/examples/webxr/src/lib.rs +++ b/examples/webxr/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg(web_sys_unstable_apis)] + #[macro_use] mod utils;