fetchlet_web/protocol.rs
1// Generated by tools/protocol/protocol.ts from crates/fetchlet-web/protocol.json.
2// Change that file and run `vp run build:protocol`.
3// Operations fingerprint: 02db9bcc278baceafe294781aeb97c38d1ee519bd0a1791de6b68460e661f99a
4
5/// The version of the operation names and messages. The guest runtime uses
6/// host implementations only when it was built for the same version.
7pub const PROTOCOL_VERSION: u32 = 3;
8
9/// The operations of each Web API, by the name `web.capabilities` reports;
10/// `web` is always served.
11/// The crate's tests check `dispatch` against it.
12#[cfg(test)]
13pub(crate) const OPERATIONS: &[(&str, &[&str])] = &[
14 ("web", &["web.capabilities"]),
15 ("url", &["url.parse", "url.set"]),
16 ("url-pattern", &["urlpattern.parse", "urlpattern.match"]),
17 (
18 "compression",
19 &[
20 "compression.open",
21 "compression.write",
22 "compression.finish",
23 "compression.read",
24 "compression.close",
25 ],
26 ),
27 (
28 "crypto",
29 &[
30 "crypto.random",
31 "crypto.digest",
32 "crypto.generateKey",
33 "crypto.importKey",
34 "crypto.exportKey",
35 "crypto.sign",
36 "crypto.verify",
37 "crypto.encrypt",
38 "crypto.decrypt",
39 "crypto.deriveBits",
40 ],
41 ),
42 (
43 "node-crypto",
44 &[
45 "nodeCrypto.hash",
46 "nodeCrypto.hmac",
47 "nodeCrypto.pbkdf2",
48 "nodeCrypto.hkdf",
49 "nodeCrypto.scrypt",
50 ],
51 ),
52];