Prelude module addition
@ -1,7 +1,4 @@
use ctru::console::Console;
use ctru::gfx::Gfx;
use ctru::services::apt::Apt;
use ctru::services::hid::{Hid, KeyPad};
use ctru::prelude::*;
fn main() {
// Setup services
@ -2,10 +2,8 @@
//! read the SD card.
use ctru::applets::swkbd::{Button, Swkbd};
use ctru::services::hid::KeyPad;
use ctru::services::{Apt, Hid};
use ctru::Gfx;
use std::fs::DirEntry;
use std::os::horizon::fs::MetadataExt;
use std::path::{Path, PathBuf};
@ -7,10 +7,8 @@
#![feature(horizon_thread_ext)]
use futures::StreamExt;
use std::os::horizon::thread::BuilderExt;
@ -1,9 +1,7 @@
use std::time::Duration;
ctru::init();
@ -1,8 +1,5 @@
use ctru::gfx::Screen as _;
/// Ferris image taken from <https://rustacean.net> and scaled down to 320x240px.
/// To regenerate the data, you will need to install `imagemagick` and run this
// Initialize services
use std::io::BufWriter;
@ -1,8 +1,4 @@
use ctru::services::soc::Soc;
use std::io::{self, Read, Write};
use std::net::{Shutdown, TcpListener};
@ -8,10 +8,7 @@
//! 3dslink --server target/armv6k-nintendo-3ds/debug/examples/output-3dslink.3dsx
//! ```
use ctru::services::cfgu::Cfgu;
use std::cell::RefCell;
@ -75,6 +75,7 @@ pub mod applets;
pub mod console;
pub mod error;
pub mod gfx;
pub mod prelude;
pub mod services;
pub mod srv;
@ -101,6 +102,3 @@ cfg_if::cfg_if! {
mod test_runner;
pub use crate::error::{Error, Result};
pub use crate::gfx::Gfx;
pub use crate::srv::Srv;
@ -0,0 +1,3 @@
pub use crate::console::Console;
pub use crate::services::{hid::KeyPad, soc::Soc, Apt, Hid};