mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
update libloading dep
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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<P>(#[allow(unused_variables)] path: P) -> Result<Self, String>
|
||||
where
|
||||
P: AsRef<OsStr>,
|
||||
P: libloading::AsFilename,
|
||||
{
|
||||
#[cfg(any(unix, windows))]
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user