rt(msl): move main.rs test to tests folder

This commit is contained in:
chyyran 2024-02-13 03:00:19 -05:00 committed by Ronny Chan
parent a1696813aa
commit d89839be16
2 changed files with 6 additions and 6 deletions

View file

@ -27,10 +27,6 @@ array-concat = "0.5.2"
bytemuck = { version = "1.12.3", features = ["derive"] }
rayon = "1.8.1"
[dependencies.icrate]
version = "0.1.0"
features = ["AppKit", "AppKit_all", "Foundation", "Foundation_all", "MetalKit", "MetalKit_all", "Metal", "Metal_all"]
[[test]]
name = "triangle"
path = "tests/hello_triangle/main.rs"
@ -40,8 +36,11 @@ harness = false
features = ["librashader-cache/docsrs"]
[target.'cfg(target_vendor="apple")'.dependencies]
#icrate = { version = "0.1.0" , features = [ "Metal", "Metal_all" ]}
icrate = { version = "0.1.0" , features = [ "Metal", "Metal_all" ]}
objc2 = { version = "0.5.0", features = ["apple"] }
#
[features]
run_test = ["icrate/AppKit", "icrate/AppKit_all", "icrate/Foundation", "icrate/Foundation_all", "icrate/MetalKit", "icrate/MetalKit_all"]
#[lib]
#crate-type = ["lib", "staticlib"]

View file

@ -1,3 +1,4 @@
#![cfg(feature = "run_test")]
#![deny(unsafe_op_in_unsafe_fn)]
use core::{cell::OnceCell, ptr::NonNull};