Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
use super::*;
mod helpers;
mod install;
mod keys;
mod random;
mod subtle;
pub(crate) use helpers::WebCryptoRejection;
pub(in crate::context_bootstrap) use install::{
build_window_crypto_for_receiver, ensure_worker_crypto_for_global,
finalize_crypto_realm_bindings, install_crypto_template_bindings,
install_window_crypto_runtime_state, install_worker_crypto_runtime_state,
};
pub(crate) use keys::{
CryptoKeyAlgorithmClonePayload, CryptoKeyClonePayload, crypto_key_clone_payload_from_object,
crypto_key_object_from_clone_payload,
};
/// Owner-neutral result of one blocking WebCrypto operation.
///
/// Page and Worker event loops wrap this payload in their own exact-owner task
/// envelopes; the payload itself does not authorize either executor.
#[derive(Debug)]
pub(crate) enum WebCryptoTaskResult {
Bytes(Vec<u8>),
Bool(bool),
JsonWebKey(serde_json::Value),
CryptoKey(Box<CryptoKeyClonePayload>),
CryptoKeyPair {
private_key: Box<CryptoKeyClonePayload>,
public_key: Box<CryptoKeyClonePayload>,
},
}