diff --git a/ctru-rs/examples/futures-basic.rs b/ctru-rs/examples/futures-basic.rs index 488468c..c9a6a5d 100644 --- a/ctru-rs/examples/futures-basic.rs +++ b/ctru-rs/examples/futures-basic.rs @@ -5,11 +5,14 @@ //! The example also implements clean shutdown by using a oneshot channel to end the future, thus //! ending the executor and the thread it runs on. +#![feature(horizon_thread_ext)] + use ctru::console::Console; use ctru::services::hid::KeyPad; use ctru::services::{Apt, Hid}; use ctru::Gfx; use futures::StreamExt; +use std::os::horizon::thread::ThreadBuilderExt; fn main() { ctru::init(); diff --git a/ctru-rs/examples/futures-tokio.rs b/ctru-rs/examples/futures-tokio.rs index 259504c..9fe6855 100644 --- a/ctru-rs/examples/futures-tokio.rs +++ b/ctru-rs/examples/futures-tokio.rs @@ -1,8 +1,11 @@ +#![feature(horizon_thread_ext)] + use ctru::console::Console; use ctru::services::hid::KeyPad; use ctru::services::ps::Ps; use ctru::services::{Apt, Hid}; use ctru::Gfx; +use std::os::horizon::thread::ThreadBuilderExt; use std::time::Duration; fn main() { diff --git a/ctru-rs/examples/thread-basic.rs b/ctru-rs/examples/thread-basic.rs index 18fc13c..24e8edd 100644 --- a/ctru-rs/examples/thread-basic.rs +++ b/ctru-rs/examples/thread-basic.rs @@ -1,8 +1,10 @@ +#![feature(horizon_thread_ext)] + use ctru::console::Console; use ctru::gfx::Gfx; use ctru::services::apt::Apt; use ctru::services::hid::{Hid, KeyPad}; - +use std::os::horizon::thread::ThreadBuilderExt; use std::time::Duration; fn main() { diff --git a/ctru-rs/examples/thread-locals.rs b/ctru-rs/examples/thread-locals.rs index 9176e01..d69c1b7 100644 --- a/ctru-rs/examples/thread-locals.rs +++ b/ctru-rs/examples/thread-locals.rs @@ -1,8 +1,11 @@ +#![feature(horizon_thread_ext)] + use ctru::console::Console; use ctru::services::hid::KeyPad; use ctru::services::{Apt, Hid}; use ctru::Gfx; use std::cell::RefCell; +use std::os::horizon::thread::ThreadBuilderExt; std::thread_local! { static MY_LOCAL: RefCell<&'static str> = RefCell::new("initial value");