Skip to content

Commit

Permalink
Add middleware configuration field to ModuleInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Jun 12, 2020
1 parent 3b5da48 commit b170c74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/runtime/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ pub struct ModuleInfo {

/// The data for each CustomSection in the module.
pub custom_sections_data: PrimaryMap<CustomSectionIndex, Arc<[u8]>>,

/// Middleware configurations. name -> (version, configuration)
pub middleware_conf: IndexMap<String, (u32, Arc<[u8]>)>,
}

impl ModuleInfo {
Expand Down Expand Up @@ -191,6 +194,7 @@ impl ModuleInfo {
num_imported_globals: 0,
custom_sections: IndexMap::new(),
custom_sections_data: PrimaryMap::new(),
middleware_conf: IndexMap::new(),
}
}

Expand Down

0 comments on commit b170c74

Please sign in to comment.