unfortunately, this whole project was doomed from the start
unloading libraries is unsupported/will lead to serious runtime issues on most if not all platforms
This commit is contained in:
parent
9efcf6b526
commit
75f26afd01
3 changed files with 28 additions and 96 deletions
|
@ -16,11 +16,11 @@ impl Plugin for ExamplePlugin {
|
|||
fn register_functions(&self) -> HashMap<String, AsyncFn> {
|
||||
let mut map = HashMap::new();
|
||||
map.insert("example_function".to_string(), example_function as AsyncFn);
|
||||
dbg!(map)
|
||||
map
|
||||
}
|
||||
|
||||
fn unregister_functions(&self) -> Vec<String> {
|
||||
dbg!(vec!["example_function".to_string()])
|
||||
vec!["example_function".to_string()]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue