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;
25
26pub use config::Config;
29pub use error::{OpfsError, VerifyResult};
30pub use package_manager::{InstallOptions, OmitType};
31pub use project::OpfsProject;
32
33#[cfg(test)]
36pub mod test_utils {
37 use std::sync::Once;
38
39 static INIT: Once = Once::new();
40
41 pub fn init_tracing() {
43 INIT.call_once(|| {
44 use tracing_subscriber::{
45 fmt::{self, format::FmtSpan},
46 layer::SubscriberExt,
47 registry,
48 util::SubscriberInitExt,
49 };
50 use tracing_web::MakeWebConsoleWriter;
51
52 let fmt_layer = fmt::layer()
53 .without_time()
54 .with_span_events(FmtSpan::CLOSE)
55 .with_writer(MakeWebConsoleWriter::new());
56
57 registry().with(fmt_layer).init();
58 });
59 }
60}