diff --git a/Cargo.lock b/Cargo.lock index 8a31c5086..8df7b86df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -680,6 +680,12 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "rustversion" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" + [[package]] name = "ryu" version = "1.0.17" @@ -871,6 +877,7 @@ name = "ui-test" version = "0.1.0" dependencies = [ "neon", + "rustversion", "trybuild", ] diff --git a/test/ui/Cargo.toml b/test/ui/Cargo.toml index 83b074886..15acd124e 100644 --- a/test/ui/Cargo.toml +++ b/test/ui/Cargo.toml @@ -13,5 +13,8 @@ version = "1.0.0" path = "../../crates/neon" features = ["futures", "napi-experimental", "serde"] +[dependencies] +rustversion = "1.0.17" + [dev-dependencies] trybuild = "1" diff --git a/test/ui/src/lib.rs b/test/ui/src/lib.rs index f120f3f48..5137b6a0d 100644 --- a/test/ui/src/lib.rs +++ b/test/ui/src/lib.rs @@ -1,3 +1,4 @@ +#[rustversion::attr(not(stable), ignore)] #[test] fn ui() { let t = trybuild::TestCases::new();