diff --git a/fyrox-impl/Cargo.toml b/fyrox-impl/Cargo.toml index 5bbb76ccc..90eae3c87 100644 --- a/fyrox-impl/Cargo.toml +++ b/fyrox-impl/Cargo.toml @@ -45,7 +45,7 @@ half = { version = "2.2.1", features = ["bytemuck"] } base64 = "0.22.1" uvgen = "0.3.0" lightmap = "0.4.0" -libloading = "0.8.1" +libloading = "0.9" gltf = { version = "1.4.0", default-features = false, features = ["names", "utils", "extras", "KHR_materials_emissive_strength"] } bytemuck = { version = "1.23.2", features = ["derive"] } approx = "0.5.1" diff --git a/fyrox-impl/src/plugin/dylib.rs b/fyrox-impl/src/plugin/dylib.rs index cbdef7e45..20a5e8fc2 100644 --- a/fyrox-impl/src/plugin/dylib.rs +++ b/fyrox-impl/src/plugin/dylib.rs @@ -20,16 +20,14 @@ //! Dynamic plugins with hot-reloading ability. -use crate::core::notify::RecommendedWatcher; use crate::{ core::{ log::Log, - notify::{self, EventKind, RecursiveMode, Watcher}, + notify::{self, EventKind, RecommendedWatcher, RecursiveMode, Watcher}, }, - plugin::Plugin, + plugin::{DynamicPlugin, Plugin}, }; use std::{ - ffi::OsStr, fs::File, io::Read, path::{Path, PathBuf}, @@ -39,8 +37,6 @@ use std::{ }, }; -use crate::plugin::DynamicPlugin; - /// Dynamic plugin, that is loaded from a dynamic library. Usually it is used for hot reloading, /// it is strongly advised not to use it in production builds, because it is slower than statically /// linked plugins and it could be unsafe if different compiler versions are used. @@ -60,7 +56,7 @@ impl DyLibHandle { /// Tries to load a plugin from a dynamic library (*.dll on Windows, *.so on Unix). pub fn load

(#[allow(unused_variables)] path: P) -> Result where - P: AsRef, + P: libloading::AsFilename, { #[cfg(any(unix, windows))] unsafe {