Environment variables
The Marine runtime sets some environment variables for each loaded module:
service_idcontains id of a current servicelocal- contains a full path to thelocaldirectorytmp- contains a full path to thetmpdirectory
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.