lunatic-solutions / lunatic

Lunatic is an Erlang-inspired runtime for WebAssembly
https://lunatic.solutions
Apache License 2.0
4.62k stars 138 forks source link

Abstract Environments #151

Closed kosticmarin closed 1 year ago

kosticmarin commented 1 year ago

This PR changes Environment and Environments into a trait.

This abstraction is useful when using lunatic as an library when embedding into another application, similar to Process and ProcessState abstractions.