-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #329 from 0xPolygonMiden/greenhat/i90-wasm-cm-carg…
…o-miden [1/x] feature(cargo-miden): support building Wasm component from a Cargo project
- Loading branch information
Showing
86 changed files
with
6,926 additions
and
3,180 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,7 @@ mod tests { | |
let wasm = wat::parse_str(wat).unwrap(); | ||
let context = test_context(); | ||
let interface_function_ident = InterfaceFunctionIdent { | ||
interface: InterfaceIdent::from_full_ident("miden:add/[email protected]".to_string()), | ||
interface: InterfaceIdent::from_full_ident("miden:add/[email protected]"), | ||
function: Symbol::intern("add"), | ||
}; | ||
let import_metadata = [( | ||
|
@@ -254,9 +254,9 @@ mod tests { | |
dbg!(ir.imports()); | ||
let component_import = ir.imports().get(&function_id).unwrap().unwrap_canon_abi_import(); | ||
assert_eq!(component_import.interface_function, interface_function_ident); | ||
assert!(!component_import.function_ty.params.is_empty()); | ||
assert!(!component_import.function_ty().params.is_empty()); | ||
let expected_import_func_ty = | ||
FunctionType::new_wasm(vec![Type::U32, Type::U32], vec![Type::U32]); | ||
assert_eq!(component_import.function_ty, expected_import_func_ty); | ||
assert_eq!(component_import.function_ty(), &expected_import_func_ty); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.