mod data_source;
mod web_sockets;
#[cfg(not(target_arch = "wasm32"))]
mod load_stdin;
pub use self::data_source::DataSource;
pub use self::web_sockets::connect_to_ws_url;
#[derive(Clone)]
pub struct FileContents {
pub name: String,
pub bytes: std::sync::Arc<[u8]>,
}
impl std::fmt::Debug for FileContents {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("FileContents")
.field("name", &self.name)
.field("bytes", &format_args!("{} bytes", self.bytes.len()))
.finish()
}
}