Skip to content

Commit 459d0d0

Browse files
committed
Hide SGX ThreadParker behind nightly feature
1 parent b636cfc commit 459d0d0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

core/src/lib.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#![warn(missing_docs)]
4141
#![warn(rust_2018_idioms)]
4242
#![cfg_attr(
43-
all(target_vendor = "fortanix", target_env = "sgx"),
43+
all(feature = "nightly", target_vendor = "fortanix", target_env = "sgx"),
4444
feature(sgx_platform)
4545
)]
4646

@@ -56,11 +56,15 @@ mod thread_parker;
5656
#[path = "thread_parker/windows/mod.rs"]
5757
mod thread_parker;
5858

59-
#[cfg(all(target_vendor = "fortanix", target_env = "sgx"))]
59+
#[cfg(all(feature = "nightly", target_vendor = "fortanix", target_env = "sgx"))]
6060
#[path = "thread_parker/sgx.rs"]
6161
mod thread_parker;
6262

63-
#[cfg(not(any(windows, unix, all(target_vendor = "fortanix", target_env = "sgx"))))]
63+
#[cfg(not(any(
64+
windows,
65+
unix,
66+
all(feature = "nightly", target_vendor = "fortanix", target_env = "sgx")
67+
)))]
6468
#[path = "thread_parker/generic.rs"]
6569
mod thread_parker;
6670

0 commit comments

Comments
 (0)