diff --git a/wasmer-it/src/ast.rs b/wasmer-it/src/ast.rs index da898b7..d97e8b3 100644 --- a/wasmer-it/src/ast.rs +++ b/wasmer-it/src/ast.rs @@ -139,3 +139,16 @@ pub struct Interfaces<'input> { /// All the implementations. pub implementations: Vec, } + +impl Interfaces { + pub fn from_version(version: semver::Version) -> Self { + Self { + version, + types: Vec::new(), + imports: Vec::new(), + adapters: Vec::new(), + exports: Vec::new(), + implementations: Vec::new(), + } + } +}