Support versioning in CLI (#67)

This commit is contained in:
vms
2021-03-12 20:04:47 +03:00
committed by GitHub
parent b0f2738c94
commit 5effdcba72
58 changed files with 993 additions and 217 deletions

View File

@ -26,8 +26,8 @@ use std::path::Path;
pub fn module_interface(module_path: &Path) -> Result<ServiceInterface> {
use fce_wit_interfaces::FCEWITInterfaces;
let wit_section_bytes = extract_wit_section_bytes(module_path)?;
let wit = extract_wit_with_fn(&wit_section_bytes)?;
let wit_section_bytes = extract_custom_section(module_path)?;
let wit = extract_wit_from_bytes(&wit_section_bytes)?;
let fce_interface = FCEWITInterfaces::new(wit);
get_interface(&fce_interface)