mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-28 04:01:33 +00:00
wip
This commit is contained in:
@ -6,6 +6,7 @@ pub struct Program {
|
||||
pub structs: Vec<Struct>,
|
||||
pub free_functions: Vec<Function>,
|
||||
pub imports: Vec<(String, Function)>,
|
||||
pub imported_structs: Vec<ImportStruct>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
@ -15,6 +16,13 @@ pub struct Struct {
|
||||
pub methods: Vec<Method>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct ImportStruct {
|
||||
pub module: Option<String>,
|
||||
pub name: String,
|
||||
pub functions: Vec<(bool, Function)>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Method {
|
||||
pub mutable: bool,
|
||||
|
Reference in New Issue
Block a user