~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 -1
impl/src/lib.rs CHANGED
@@ -98,7 +98,7 @@ fn dynamic(ident: &syn::Ident, folder_path: String) -> TokenStream2 {
98
98
 
99
99
  fn generate_assets(ident: &syn::Ident, folder_path: String) -> TokenStream2 {
100
100
  let embedded_impl = embedded(ident, folder_path.clone());
101
- if cfg!(feature = "rust-embed") {
101
+ if cfg!(feature = "debug-embed") {
102
102
  return embedded_impl;
103
103
  }
104
104