rust-embed v8.11.0

#rust#proc-macro#http

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.


dacbdc3Jasper van Herpt 2022-11-19T20:11:43+01:00
Make sure it is provided at the correct place
Files changed (1) hide show
  1. 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
  }