Always extern crate std when cfg(test). (#9817)

This commit is contained in:
Kevin Reid authored and GitHub committed 2026-07-06 23:48:52 -04:00
1 parent 10749ae7c1
commit 8b6c34ee9b
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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
View File
@@ -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;
+1 -1
View File
@@ -14,7 +14,7 @@
)]
#![no_std]
#[cfg(feature = "std")]
#[cfg(any(feature = "std", test))]
extern crate std;
extern crate alloc;