If you are releasing a rust application and want to programatically know if you are in that environment, and access some of the variables in that environment, I have released a rust crate for snapcraft that may help you, along with an example test application. I hope this helps someone:
1 Like