Files
moli/moli-shared-worker/src/lib.rs
2026-08-11 00:10:12 +08:00

25 lines
1.0 KiB
Rust

//! Renderer-neutral SharedWorker matching and registry state.
//!
//! The crate intentionally stops at browser-model state: storage-key/script/name
//! matching, creation option compatibility, loading/running client state, and
//! partition-scoped registry actions. Embedders supply the actual worker runtime
//! handle and keep V8 wrappers, MessagePort endpoints, fetch policy, and wake
//! routing outside this crate.
mod client;
mod key;
mod options;
mod registry;
pub use client::{SharedWorkerClientId, SharedWorkerClientOwnerId, SharedWorkerInstanceId};
pub use key::SharedWorkerKey;
pub use options::{
SharedWorkerCompatibilityError, SharedWorkerCreationContextType, SharedWorkerCredentialsMode,
SharedWorkerDescriptor, SharedWorkerSameSiteCookies, SharedWorkerScriptType,
};
pub use registry::{
SharedWorkerClientOwnerEvent, SharedWorkerClientRemoval, SharedWorkerConnectAction,
SharedWorkerInstanceRemoval, SharedWorkerLoadFailure, SharedWorkerLoadReady,
SharedWorkerObservedAction, SharedWorkerRegistry, SharedWorkerRegistryDiagnostics,
};