~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.


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
  }