Remove thread-context feature

This commit is contained in:
Dániel Buga
2023-08-14 08:22:22 +02:00
parent 6ab0d71d92
commit ec6bd27df6
8 changed files with 5 additions and 34 deletions

View File

@ -21,9 +21,7 @@ mod thread {
pub struct Context;
impl ThreadContext for Context {
#[cfg(feature = "thread-context")]
fn context(&self) -> OpaqueThreadContext {
// Enabling thread-context is not incorrect, just wasteful.
OpaqueThreadContext(0)
}

View File

@ -27,9 +27,7 @@ mod thread {
pub struct Context;
impl ThreadContext for Context {
#[cfg(feature = "thread-context")]
fn context(&self) -> OpaqueThreadContext {
// Enabling thread-context is not incorrect, just wasteful.
OpaqueThreadContext(0)
}

View File

@ -1,9 +1,6 @@
#[cfg(feature = "executor-interrupt")]
compile_error!("`executor-interrupt` is not supported with `arch-std`.");
#[cfg(not(feature = "thread-context"))]
compile_error!("`arch-std` requires `thread-context`.");
#[cfg(feature = "executor-thread")]
pub use thread::*;
#[cfg(feature = "executor-thread")]

View File

@ -1,9 +1,6 @@
#[cfg(feature = "executor-interrupt")]
compile_error!("`executor-interrupt` is not supported with `arch-wasm`.");
#[cfg(not(feature = "thread-context"))]
compile_error!("`arch-wasm` requires `thread-context`.");
#[cfg(feature = "executor-thread")]
pub use thread::*;
#[cfg(feature = "executor-thread")]

View File

@ -25,9 +25,7 @@ mod thread {
pub struct Context;
impl ThreadContext for Context {
#[cfg(feature = "thread-context")]
fn context(&self) -> OpaqueThreadContext {
// Enabling thread-context is not incorrect, just wasteful.
OpaqueThreadContext(0)
}