Expand description
#1969: renders reference/wire-format.md, the published reference for wire
format version 1.
Every fact the page states that the compiler also uses is read from the
compiler: the version, headers and check order from super, the base-type
encodings from crate::wire, and the contract hash from
crate::contract, computed on EXAMPLE_SOURCE. The page’s examples
(EXAMPLES) are executed: bynkc/tests/wire_reference.rs compiles
EXAMPLE_SOURCE to Workers, runs every example through the generated
codecs on Node, and checks the emitted hashes and dispatch against this page.
Regenerate the page with
BYNK_BLESS=1 cargo test -p bynkc --test it wire_reference::.
Structs§
- Example
- One executed example:
jsondecoded asty.
Enums§
- Outcome
- What decoding an example’s JSON does.
Constants§
- EXAMPLES
- The page’s examples, each run through the generated codecs by
bynkc/tests/wire_reference.rs. - EXAMPLE_
SOURCE - The context the page’s examples and worked hash are computed on.
Functions§
- example_
contracts - The page’s worked contract-hash example: each
on callservice ofEXAMPLE_SOURCEwith its normal form and hash, in source order. - render_
reference - The whole page, in mdBook form (
# H1title, relative.mdlinks).