Expand description
Xur’s standard library, std.
It is registered like any other native module, so embedders can run programs with a different standard library, or register more modules alongside it. Each submodule registers itself.
Modules§
- decimal
std::decimal— arbitrary-precision decimal numbers backed byrust_decimal.- fmt
- Format strings, as used by
std::io::printandprintln. - gui
- io
std::io: printing.- re
std::re: reverse engineering — reading executables, live processes and machine code.
Constants§
Functions§
- module_
feature - The cargo feature that provides the module at
path(std::fs→fs), orNonefor modules that are always there. - register
- Registers
stdand its submodules inregistry. - registry
- A registry holding only
std. - set_
argv - Sets the program’s argument list.
scriptis the path to the script (Nonefor stdin);argsare the trailing arguments. - set_
invoked_ by - Sets how xur was invoked (e.g. “cli”, “stub”). Must be called once before any script runs; later calls are ignored.