Skip to main content

Module native

Module native 

Source
Expand description

Native builds have no page to import from. This side stands in for it, so a test can run the playground’s examples (tests/examples.rs, which compiles this file in as a module): files come from a table the test sets, writes are recorded, and an exit unwinds with an Exit payload.

Structs§

Exit
The panic payload IO.Proc.exit unwinds with.

Functions§

set_files
Serve (path, source) files to imports, as the page’s FILES table does.
take_output
What was written since the last call, in order.