~repos /rust-embed

#rust#proc-macro#http

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.


075637cd pyros2097

7 years ago
fix help message
Files changed (1) hide show
  1. src/lib.rs +2 -1
src/lib.rs CHANGED
@@ -91,7 +91,7 @@ fn generate_assets(ident: &syn::Ident, folder_path: String) -> quote::Tokens {
91
91
  }
92
92
 
93
93
  fn help() {
94
- panic!("#[derive(RustEmbed)] should contain one attribute like this #[golem(\"examples/public/\")]");
94
+ panic!("#[derive(RustEmbed)] should contain one attribute like this #[folder(\"examples/public/\")]");
95
95
  }
96
96
 
97
97
  fn impl_rust_embed(ast: &syn::DeriveInput) -> Tokens {
@@ -132,6 +132,7 @@ fn impl_rust_embed(ast: &syn::DeriveInput) -> Tokens {
132
132
  panic!("#[derive(RustEmbed)] attribute value must be a string literal");
133
133
  }
134
134
  };
135
+ info!("folder: {}", folder_path);
135
136
  generate_assets(ident, folder_path)
136
137
  }
137
138