Update rust-embed

This commit is contained in:
Johannes Altmanninger
2026-01-16 16:07:11 +01:00
parent 02cb93311a
commit 50a97856dc
3 changed files with 5 additions and 13 deletions

4
Cargo.lock generated
View File

@@ -768,9 +768,9 @@ dependencies = [
[[package]]
name = "rust-embed"
version = "8.9.0"
version = "8.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "947d7f3fad52b283d261c4c99a084937e2fe492248cb9a68a8435a861b8798ca"
checksum = "04113cb9355a377d83f06ef1f0a45b8ab8cd7d8b1288160717d66df5c7988d27"
dependencies = [
"rust-embed-impl",
"rust-embed-utils",

View File

@@ -58,7 +58,7 @@ rand = { version = "0.9.2", default-features = false, features = [
"thread_rng",
] }
rsconf = "0.3.0"
rust-embed = { version = "8.9.0", features = [
rust-embed = { version = "8.11.0", features = [
"deterministic-timestamps",
"include-exclude",
"interpolate-folder-path",

View File

@@ -308,16 +308,8 @@ impl RustEmbed for EmptyEmbed {
fn get(_file_path: &str) -> Option<rust_embed::EmbeddedFile> {
None
}
fn iter() -> rust_embed::Filenames {
use rust_embed::Filenames::*;
cfg_if! {
// TODO This is a clone of rebuild_if_embedded_path_changed.
if #[cfg(any(not(debug_assertions), windows))] {
Embedded([].iter())
} else {
Dynamic(Box::new(None.into_iter()))
}
}
fn iter() -> impl Iterator<Item = std::borrow::Cow<'static, str>> {
std::iter::empty()
}
}