1#![cfg(all(target_family = "wasm", target_os = "unknown"))]
2
3pub mod archive;
18pub mod config;
19pub mod error;
20pub mod fuse_fs;
21pub mod package_lock;
22pub mod package_manager;
23pub mod project;
24pub mod store;
25pub mod tar_index;
26
27pub use config::Config;
30pub use error::{OpfsError, VerifyResult};
31pub use package_manager::{InstallOptions, OmitType};
32pub use project::OpfsProject;
33
34#[cfg(test)]
37pub mod test_utils {
38 use std::sync::Once;
39
40 static INIT: Once = Once::new();
41
42 pub fn init_tracing() {
44 INIT.call_once(|| {
45 use tracing_subscriber::{
46 fmt::{self, format::FmtSpan},
47 layer::SubscriberExt,
48 registry,
49 util::SubscriberInitExt,
50 };
51 use tracing_web::MakeWebConsoleWriter;
52
53 let fmt_layer = fmt::layer()
54 .without_time()
55 .with_span_events(FmtSpan::CLOSE)
56 .with_writer(MakeWebConsoleWriter::new());
57
58 registry().with(fmt_layer).init();
59 });
60 }
61}