~repos /rust-embed

#rust#proc-macro#http

git clone https://pyrossh.dev/repos/rust-embed.git
Discussions: https://groups.google.com/g/rust-embed-devs

rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.


77768cda pyrossh

22 hours ago
release v8.10.0
Files changed (6) hide show
  1. Cargo.toml +1 -1
  2. README.md +1 -1
  3. changelog.md +4 -0
  4. impl/Cargo.toml +2 -2
  5. src/lib.rs +1 -1
  6. utils/Cargo.toml +1 -1
Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-embed"
3
- version = "8.9.0"
3
+ version = "8.10.0"
4
4
  description = "Rust Custom Derive Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev"
5
5
  readme = "README.md"
6
6
  documentation = "https://docs.rs/rust-embed"
README.md CHANGED
@@ -8,7 +8,7 @@ You can use this to embed your css, js and images into a single executable which
8
8
 
9
9
  ```toml
10
10
  [dependencies]
11
- rust-embed="8.9.0"
11
+ rust-embed="8.10.0"
12
12
  ```
13
13
 
14
14
  ## Documentation
changelog.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  Thanks to [Mark Drobnak](https://github.com/AzureMarker) for the changelog.
9
9
 
10
+ ## [8.10.0] - 2026-01-13
11
+
12
+ - RustEmbed::iter(): replace concrete return type with generic iterator, to make it easier to implement an empty fake embed. Thanks to Johannes Altmanninger <aclopte@gmail.com>.
13
+
10
14
  ## [8.9.0] - 2025-10-31
11
15
 
12
16
  - Ignore paths that couldn't be canonicalized. Thanks to zvolin <mac.zwolinski@gmail.com>.
impl/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-embed-impl"
3
- version = "8.9.0"
3
+ version = "8.10.0"
4
4
  description = "Rust Custom Derive Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev"
5
5
  readme = "readme.md"
6
6
  documentation = "https://docs.rs/rust-embed"
@@ -15,7 +15,7 @@ edition = "2018"
15
15
  proc-macro = true
16
16
 
17
17
  [dependencies]
18
- rust-embed-utils = { version = "8.9.0", path = "../utils" }
18
+ rust-embed-utils = { version = "8.10.0", path = "../utils" }
19
19
 
20
20
  syn = { version = "2", default-features = false, features = [
21
21
  "derive",
src/lib.rs CHANGED
@@ -45,7 +45,7 @@ pub trait RustEmbed {
45
45
  /// is used.
46
46
  ///
47
47
  /// Otherwise, the files are listed from the file system on each call.
48
- fn iter() -> Filenames;
48
+ fn iter() -> impl Iterator<Item = std::borrow::Cow<'static, str>>;
49
49
  }
50
50
 
51
51
  pub use RustEmbed as Embed;
utils/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-embed-utils"
3
- version = "8.9.0"
3
+ version = "8.10.0"
4
4
  description = "Utilities for rust-embed"
5
5
  readme = "readme.md"
6
6
  documentation = "https://docs.rs/rust-embed"