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.


977cfc0pyrossh 2026-05-24T14:47:34+05:30
Fix folder_path not being an Option
Files changed (1) hide show
  1. impl/src/lib.rs +2 -0
impl/src/lib.rs CHANGED
@@ -390,6 +390,8 @@ fn impl_rust_embed(ast: &syn::DeriveInput) -> syn::Result<TokenStream2> {
390
390
  Err(v) if v.cause == std::env::VarError::NotPresent && allow_missing => Ok(None),
391
391
  Err(v) => Err(syn::Error::new_spanned(ast, v.to_string())),
392
392
  }?;
393
+ #[cfg(not(feature = "interpolate-folder-path"))]
394
+ let folder_path = Some(folder_path);
393
395
 
394
396
  // Base relative paths on the Cargo.toml location
395
397
  let (relative_path, absolute_folder_path) = if let Some(folder_path) = folder_path {