update libloading dep

This commit is contained in:
Dmitry Stepanov
2026-03-02 21:05:42 +03:00
parent 50b9ee2249
commit ec2a3006c2
2 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -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"
+3 -7
View File
@@ -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 {