atproto blogging
1//! Entry point for the embed web worker.
2//!
3//! This binary is compiled separately and loaded by the main app
4//! to fetch and cache AT Protocol embeds off the main thread.
5
6#[cfg(all(target_family = "wasm", target_os = "unknown"))]
7fn main() {
8 console_error_panic_hook::set_once();
9
10 use gloo_worker::Registrable;
11 use weaver_embed_worker::EmbedWorker;
12
13 EmbedWorker::registrar().register();
14}
15
16#[cfg(not(all(target_family = "wasm", target_os = "unknown")))]
17fn main() {
18 eprintln!("This binary is only meant to run as a WASM web worker");
19}