~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.


439e72e9 Liran Piade

1 year ago
Don't change folder-not-found message
Files changed (1) hide show
  1. 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. To allow the folder to be missing, add #[allow_missing]. cwd: '{}'",
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
  );