Skip to main content

Module reference

Module reference 

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: json decoded as ty.

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 call service of EXAMPLE_SOURCE with its normal form and hash, in source order.
render_reference
The whole page, in mdBook form (# H1 title, relative .md links).