diff --git a/utralib/build.rs b/utralib/build.rs index 73d23c5b5..38423a954 100644 --- a/utralib/build.rs +++ b/utralib/build.rs @@ -1,6 +1,8 @@ use std::env; use std::fs::OpenOptions; -use std::io::{Read, Write}; +use std::io::Write; +#[cfg(not(feature = "hosted"))] +use std::io::Read; use std::path::PathBuf; fn out_dir() -> PathBuf {