Marine runtime sets some environment variables for each loaded module:
service_idcontains id of a current service
local- contains a full path to the
tmp- contains a full path to the
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.