swc_plugin_runner/
host_environment.rs

1/// An external environment state imported (declared in host, injected into
2/// guest) fn can access. This'll allow host to read from updated state from
3/// guest.
4///
5/// This is `base` environment exposes nothing. For other
6/// calls requires additional data to be set in the host, separate
7/// hostenvironments are declared. Refer `CommentsHostEnvironment` for an
8/// example.
9///
10/// ref: https://docs.wasmer.io/integrations/examples/host-functions#declaring-the-data
11#[derive(Clone)]
12pub struct BaseHostEnvironment {}
13
14impl BaseHostEnvironment {
15    pub fn new() -> BaseHostEnvironment {
16        BaseHostEnvironment {}
17    }
18}