~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. src/lib.rs +0 -2
src/lib.rs CHANGED
@@ -53,7 +53,6 @@ fn generate_assets(ident: &syn::Ident, folder_path: String) -> quote::Tokens {
53
53
  .filter_map(|e| e.ok())
54
54
  .filter(|e| e.file_type().is_file())
55
55
  {
56
- println!(" \x1b[1m\x1b[92mCompiling\x1b[0m {}", entry.path().display());
57
56
  let base = &folder_path.clone();
58
57
  let key = String::from(entry.path().to_str().expect("Path does not have a string representation")).replace(base, "");
59
58
  let canonical_path = std::fs::canonicalize(entry.path()).expect("Could not get canonical path");
@@ -110,7 +109,6 @@ fn impl_rust_embed(ast: &syn::DeriveInput) -> Tokens {
110
109
  panic!("#[derive(RustEmbed)] attribute value must be a string literal");
111
110
  }
112
111
  };
113
- println!(" \x1b[1m\x1b[92mCompiling\x1b[0m {}", folder_path);
114
112
  generate_assets(ident, folder_path)
115
113
  }
116
114