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

Function wasm_export_name_set

xtask/src/main.rs:7972–7980  ·  view source on GitHub ↗
(link: &WasmLinkMetadataOut)

Source from the content-addressed store, hash-verified

7970}
7971
7972fn wasm_export_name_set(link: &WasmLinkMetadataOut) -> HashSet<String> {
7973 link.exports
7974 .iter()
7975 .flat_map(|export| {
7976 let normalized = export.name.trim_start_matches('_').to_owned();
7977 [export.name.clone(), normalized]
7978 })
7979 .collect()
7980}
7981
7982fn has_wasm_export(link: &WasmLinkMetadataOut, name: &str) -> bool {
7983 link.exports

Callers 2

write_asset_manifestFunction · 0.85

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected