Skip to main content

Crate roto

Crate roto 

Source
Expand description

Roto is an embedded scripting language for Rust applications that is fast, safe and easy to use.

This is API documentation of the Roto crate, for a more comprehensive introduction to the language, see the manual.

Modules§

__internal
Items exported only for use in macros
deps
Dependency management for Roto scripts.
fmt
Formatter for Roto code
load
Loading Roto scripts to be compiled.
runtime
Runtime definition for Roto.
tools
Some tools for working with Roto scripts (currently only printing it).
value
Types that can be passed to Roto.

Macros§

library
Create a list of items to be registered.
location
Rust source code location

Structs§

Blob
The final compiled package of a script.
Location
A source file location
RotoReport
An error report containing a set of Roto errors.
Runtime
Provides the types and functions that Roto can access via FFI
TypedFunc
A function extracted from Roto

Traits§

RotoFunc
A function that can be registered in a runtime.

Functions§

has_main_function
Returns true if the script has valid syntax and contains a main function on the top level.

Derive Macros§

Context