rust-embed v8.11.0
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.
00e57eb
— Jonathan Rowlands
2018-03-16T00:08:02-05:00
Uses $crate variable so embed! works in external macros
- 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)]
|