rspack_browser/
lib.rs

1//! This crate contains everything that should only be used for `@rspack/browser`,
2//! especially some api that avoiding requesting locks in the main thread of browser.
3//!
4//! Always make it optional and use a "browser" feature to control it.
5//! ```toml
6//! [features]
7//! browser = ["dep:rspack_browser"]
8//!
9//! [dependencies]
10//! rspack_browser = { workspace = true, optional = true }
11//! ```
12pub mod oneshot;
13pub mod panic;