~repos /rust-embed
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.
5d69b283
—
pyros2097 7 years ago
add proper log when compiling files in release
- src/lib.rs +1 -1
src/lib.rs
CHANGED
|
@@ -58,7 +58,7 @@ fn generate_assets(ident: &syn::Ident, folder_path: String) -> quote::Tokens {
|
|
|
58
58
|
.filter_map(|e| e.ok())
|
|
59
59
|
.filter(|e| e.file_type().is_file())
|
|
60
60
|
{
|
|
61
|
-
|
|
61
|
+
println!(" \x1b[92mCompiling\x1b[0m {}", entry.path().display());
|
|
62
62
|
let base = &folder_path.clone();
|
|
63
63
|
let key = String::from(
|
|
64
64
|
entry
|