MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / import_should_resolve_from_runtime

Function import_should_resolve_from_runtime

xtask/src/main.rs:7958–7970  ·  view source on GitHub ↗
(import: &WasmImportOut)

Source from the content-addressed store, hash-verified

7956}
7957
7958fn import_should_resolve_from_runtime(import: &WasmImportOut) -> bool {
7959 match import.module.as_str() {
7960 "env" | "GOT.func" | "GOT.mem" => !matches!(
7961 import.name.as_str(),
7962 "__indirect_function_table"
7963 | "__memory_base"
7964 | "__stack_pointer"
7965 | "__table_base"
7966 | "memory"
7967 ),
7968 _ => false,
7969 }
7970}
7971
7972fn wasm_export_name_set(link: &WasmLinkMetadataOut) -> HashSet<String> {
7973 link.exports

Callers 3

write_asset_manifestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected