fetchlet-web 0.1.0

Engine-independent host implementations of Web APIs for fetchlet guests
Documentation
// Generated by tools/protocol/protocol.ts from crates/fetchlet-web/protocol.json.
// Change that file and run `vp run build:protocol`.
// Operations fingerprint: 02db9bcc278baceafe294781aeb97c38d1ee519bd0a1791de6b68460e661f99a

/// The version of the operation names and messages. The guest runtime uses
/// host implementations only when it was built for the same version.
pub const PROTOCOL_VERSION: u32 = 3;

/// The operations of each Web API, by the name `web.capabilities` reports;
/// `web` is always served.
/// The crate's tests check `dispatch` against it.
#[cfg(test)]
pub(crate) const OPERATIONS: &[(&str, &[&str])] = &[
    ("web", &["web.capabilities"]),
    ("url", &["url.parse", "url.set"]),
    ("url-pattern", &["urlpattern.parse", "urlpattern.match"]),
    (
        "compression",
        &[
            "compression.open",
            "compression.write",
            "compression.finish",
            "compression.read",
            "compression.close",
        ],
    ),
    (
        "crypto",
        &[
            "crypto.random",
            "crypto.digest",
            "crypto.generateKey",
            "crypto.importKey",
            "crypto.exportKey",
            "crypto.sign",
            "crypto.verify",
            "crypto.encrypt",
            "crypto.decrypt",
            "crypto.deriveBits",
        ],
    ),
    (
        "node-crypto",
        &[
            "nodeCrypto.hash",
            "nodeCrypto.hmac",
            "nodeCrypto.pbkdf2",
            "nodeCrypto.hkdf",
            "nodeCrypto.scrypt",
        ],
    ),
];