Built-in Modules

The std module group consists of built-in modules for the language that are written and constructed natively in Rust.

These can be imported into your scripts using the use function with a std:<module_name> prefix and stored in a namespace.

Example

var io = use("std:io");

Quick Note:

You can view a module's functions and properties at runtime using the dir function:

var io = use("std:io");

echo dir(io);

Index of std Modules & Functions

  • std:ffi: implementation of foreign function interfaces to call C functions.
  • std:fs: file system operation related functions and variables.
  • std:io: module with functions for taking inputs and outputs to and from console.
  • std:os: functions and classes handling OS and environment related operations.
  • std:time: module with system clock and time related functions.
  • std:util: utility functions for conversions, shortcuts and language features.