fix: update wasm-bindgen version

This commit is contained in:
mrxiaozhuox committed 2022-07-26 17:03:34 +08:00
1 parent ded8f86279
commit a21433016a
4 files changed
+29 -27

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ pub fn build(config: &CrateConfig, quiet: bool) -> Result<BuildResult> {
.unwrap();
});
if bindgen_result.is_err() {
return Err(Error::BuildFailed("Bindgen build failed! \nThis is probably due to the Bindgen version, dioxus-cli using `0.2.79` Bindgen crate.".to_string()));
return Err(Error::BuildFailed("Bindgen build failed! \nThis is probably due to the Bindgen version, dioxus-cli using `0.2.82` Bindgen crate.".to_string()));
}
// check binaryen:wasm-opt tool
+4 -2
View File
@@ -36,8 +36,7 @@ impl PluginManager {
let plugin_dir = Self::init_plugin_dir();
let mut index = 0;
println!("{plugin_dir:?}");
for entry in WalkDir::new(plugin_dir).into_iter().filter_map(|e| e.ok()) {
for entry in WalkDir::new(&plugin_dir).into_iter().filter_map(|e| e.ok()) {
let plugin_dir = entry.path().to_path_buf();
if plugin_dir.is_dir() {
let init_file = plugin_dir.join("init.lua");
@@ -52,6 +51,9 @@ impl PluginManager {
}
}
lua.globals()
.set("package.path", format!("{}", plugin_dir.display())).unwrap();
lua.globals().set("manager", manager).unwrap();
Some(Self { lua })