~repos /rust-embed
git clone https://pyrossh.dev/repos/rust-embed.git
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
dacbdc3c
—
Jasper van Herpt 3 years ago
Make sure it is provided at the correct place
- impl/src/lib.rs +1 -2
impl/src/lib.rs
CHANGED
|
@@ -193,8 +193,7 @@ fn embed_file(rel_path: &str, full_canonical_path: &str) -> TokenStream2 {
|
|
|
193
193
|
|
|
194
194
|
Some(rust_embed::EmbeddedFile {
|
|
195
195
|
data: std::borrow::Cow::from(bytes),
|
|
196
|
-
metadata: rust_embed::Metadata::__rust_embed_new([#(#hash),*], #last_modified),
|
|
196
|
+
metadata: rust_embed::Metadata::__rust_embed_new([#(#hash),*], #last_modified, #is_dir),
|
|
197
|
-
is_dir: #is_dir
|
|
198
197
|
})
|
|
199
198
|
}
|
|
200
199
|
}
|