mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-28 04:01:33 +00:00
more-wip
This commit is contained in:
@ -61,6 +61,13 @@ impl Function {
|
||||
name.push_str(&self.name);
|
||||
return name
|
||||
}
|
||||
|
||||
pub fn mangled_import_name(&self, struct_: Option<&str>) -> String {
|
||||
match struct_ {
|
||||
Some(s) => format!("__wbg_s_{}_{}", s, self.name),
|
||||
None => format!("__wbg_f_{}", self.name),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
|
Reference in New Issue
Block a user