rust-embed v8.11.0
git clone https://git.pyrossh.dev/rust-embed
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
ea7be21
— Samet Arık
2023-08-24T23:40:23+03:00
Changed the "items" constant to UPPER_CASE
- impl/src/lib.rs +2 -2
impl/src/lib.rs
CHANGED
|
@@ -81,8 +81,8 @@ fn embedded(
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
fn names() -> std::slice::Iter<'static, &'static str> {
|
|
84
|
-
const
|
|
84
|
+
const ITEMS: [&str; #array_len] = [#(#list_values),*];
|
|
85
|
-
|
|
85
|
+
ITEMS.iter()
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/// Iterates over the file paths in the folder.
|