~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.
439e72e9
—
Liran Piade 11 months ago
Don't change folder-not-found message
- impl/src/lib.rs +1 -1
impl/src/lib.rs
CHANGED
|
@@ -379,7 +379,7 @@ fn impl_rust_embed(ast: &syn::DeriveInput) -> syn::Result<TokenStream2> {
|
|
|
379
379
|
|
|
380
380
|
if !Path::new(&absolute_folder_path).exists() && !allow_missing {
|
|
381
381
|
let mut message = format!(
|
|
382
|
-
"#[derive(RustEmbed)] folder '{}' does not exist.
|
|
382
|
+
"#[derive(RustEmbed)] folder '{}' does not exist. cwd: '{}'",
|
|
383
383
|
absolute_folder_path,
|
|
384
384
|
std::env::current_dir().unwrap().to_str().unwrap()
|
|
385
385
|
);
|