mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
Always extern crate std when cfg(test). (#9817)
This commit is contained in:
1 parent
10749ae7c1
commit
8b6c34ee9b
4 files changed
+4
-4
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![no_std]
|
||||
extern crate alloc;
|
||||
#[cfg(feature = "std")]
|
||||
#[cfg(any(feature = "std", test))]
|
||||
extern crate std;
|
||||
|
||||
pub mod glsl;
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
extern crate alloc;
|
||||
extern crate naga_types as nt;
|
||||
#[cfg(feature = "std")]
|
||||
#[cfg(any(feature = "std", test))]
|
||||
extern crate std;
|
||||
extern crate wgpu_hal as hal;
|
||||
extern crate wgpu_types as wgt;
|
||||
|
||||
+1
-1
@@ -243,7 +243,7 @@ extern crate alloc;
|
||||
extern crate naga_types as nt;
|
||||
extern crate wgpu_types as wgt;
|
||||
// Each of these backends needs `std` in some fashion; usually `std::thread` functions.
|
||||
#[cfg(any(dx12, gles_with_std, metal, vulkan))]
|
||||
#[cfg(any(dx12, gles_with_std, metal, vulkan, test))]
|
||||
#[macro_use]
|
||||
extern crate std;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
)]
|
||||
#![no_std]
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
#[cfg(any(feature = "std", test))]
|
||||
extern crate std;
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
Reference in new issue
Block a user