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:
lever1209 2024-08-22 00:03:50 -03:00
commit 75f26afd01
Signed by: lever1209
GPG key ID: AD770D25A908AFF4
3 changed files with 28 additions and 96 deletions

View file

@ -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()]
}
}