flowstdlibSee also: Code docs
flowstdlib is a standard library of functions and flows for flow programs to use.
flowstdlib contains the following modules:
* control
* data
* fmt
* math
In order for the compiler to be able to find the library's flow and function definitions, the directory containing
this library must be part of FLOW_LIB_PATH or specified using an instance of the -L command line option to flowc,
Libraries like flowstdlib are built using flowc with the -l option.
This builds a directory tree of all required files for a portable library, including:-
* documentation files (.md MarkDown files, generated .dot files and generated SVG files)
* TOML definition files for flows and functions
* Function implementations compiled to a .wasm WASM file for each function.
* A manifest.json manifest of the libraries functions and where the implementations (.wasm files) can be found. \
This is used by the Runtime to be able to load it.
It can be compiled and linked natively to a (rust) run-time. flowr offers the -n option to specify this use of it.
Its functions can be loaded from WASM files by flowrlib at run-time using the manifest.json file to locate them.
FLOW_LIB_PATH during developmentIf you are using it as part of the larger flow workspace then you just need the flow project root directory
in your FLOW_LIB_PATH as described above (or added to the lib search part using the -L <dir> option).