Environment variables
The Marine
runtime sets some environment variables for each loaded module:
service_id
contains id of a current servicelocal
- contains a full path to thelocal
directorytmp
- contains a full path to thetmp
directory
Additionally, the runtime adds one variable for each mounted binary import specified in a configuration file, this variable contains a specified in the config file path to a mounted CLI binary.
Environment variables could be seen with the Marine REPL, more details here. From the code perspective, such variables could be obtained with the standard Rust std::env mechanism.