~repos /rust-embed

#rust#proc-macro#http

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.


84f1294c pyros2097

7 years ago
Merge pull request #9 from jgrowl/master
Files changed (1) hide show
  1. src/lib.rs +1 -1
src/lib.rs CHANGED
@@ -66,7 +66,7 @@ pub fn generate_assets<'a>(parent_path: String) -> Asset {
66
66
 
67
67
  #[macro_export]
68
68
  macro_rules! embed {
69
- ($x:expr) => ( ::generate_assets($x) )
69
+ ($x:expr) => ( $crate::generate_assets($x) )
70
70
  }
71
71
 
72
72
  #[cfg(test)]