rt(msl): move main.rs test to tests folder
This commit is contained in:
parent
a1696813aa
commit
d89839be16
2 changed files with 6 additions and 6 deletions
|
@ -27,10 +27,6 @@ array-concat = "0.5.2"
|
||||||
bytemuck = { version = "1.12.3", features = ["derive"] }
|
bytemuck = { version = "1.12.3", features = ["derive"] }
|
||||||
rayon = "1.8.1"
|
rayon = "1.8.1"
|
||||||
|
|
||||||
[dependencies.icrate]
|
|
||||||
version = "0.1.0"
|
|
||||||
features = ["AppKit", "AppKit_all", "Foundation", "Foundation_all", "MetalKit", "MetalKit_all", "Metal", "Metal_all"]
|
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "triangle"
|
name = "triangle"
|
||||||
path = "tests/hello_triangle/main.rs"
|
path = "tests/hello_triangle/main.rs"
|
||||||
|
@ -40,8 +36,11 @@ harness = false
|
||||||
features = ["librashader-cache/docsrs"]
|
features = ["librashader-cache/docsrs"]
|
||||||
|
|
||||||
[target.'cfg(target_vendor="apple")'.dependencies]
|
[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"] }
|
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]
|
#[lib]
|
||||||
#crate-type = ["lib", "staticlib"]
|
#crate-type = ["lib", "staticlib"]
|
|
@ -1,3 +1,4 @@
|
||||||
|
#![cfg(feature = "run_test")]
|
||||||
#![deny(unsafe_op_in_unsafe_fn)]
|
#![deny(unsafe_op_in_unsafe_fn)]
|
||||||
|
|
||||||
use core::{cell::OnceCell, ptr::NonNull};
|
use core::{cell::OnceCell, ptr::NonNull};
|
Loading…
Add table
Reference in a new issue