webfetch_core/lib.rs
1//! Shared primitives for the webfetch/websearch tools: text compression and
2//! token budgeting ([`compress`]), reference-style URL preservation and the
3//! reference-aware token budget ([`refs`]), HTTP primitives — user agent,
4//! body cap, retry classification ([`http`]) — and the [`transport`]
5//! abstraction the libraries send requests through. The native
6//! [`transport::ReqwestTransport`] and shared TLS trust configuration ([`tls`])
7//! are behind the `native` feature; the WASI 0.2 [`transport::WasiTransport`]
8//! is behind `wasi`. Both leaf crates re-export these so their internal modules
9//! can keep using `crate::compress` / `crate::refs` / `crate::tls`.
10
11pub mod charset;
12pub mod compress;
13pub mod http;
14pub mod refs;
15pub mod transport;
16
17#[cfg(feature = "native")]
18pub mod tls;
19
20#[cfg(feature = "wasi")]
21mod wasi_transport;