Skip to main content

fetchlet_web/
lib.rs

1//! Host implementations of Web APIs for fetchlet guests.
2//!
3//! The guest runtime calls these as host operations: a name, a JSON message
4//! and byte-store handles. They depend on no JavaScript engine, so QuickJS,
5//! Boa and V8 share one implementation of each API.
6
7mod dispatch;
8mod error;
9mod limits;
10mod protocol;
11mod state;
12
13#[cfg(feature = "compression")]
14mod compression;
15#[cfg(feature = "web-crypto")]
16mod crypto;
17#[cfg(feature = "node-crypto")]
18mod node_crypto;
19#[cfg(feature = "url")]
20mod url;
21#[cfg(feature = "url-pattern")]
22mod url_pattern;
23
24pub use dispatch::{ByteHandles, Invocation, capabilities, dispatch};
25pub use error::{Error, Result};
26pub use limits::WebLimits;
27pub use protocol::PROTOCOL_VERSION;
28pub use state::WebState;
29
30#[cfg(feature = "compression")]
31pub use compression::{CompressionFormat, Decompressor};