rust-embed v8.11.0

#rust#proc-macro#http

git clone https://git.pyrossh.dev/rust-embed

rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.


439e72eLiran Piade 2025-01-04T18:31:40+10:00
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
  );