~repos /rust-embed
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.
d4dc6f73
—
David Marcin 5 years ago
Fix feature flag typo
- impl/src/lib.rs +1 -1
impl/src/lib.rs
CHANGED
|
@@ -98,7 +98,7 @@ fn dynamic(ident: &syn::Ident, folder_path: String) -> TokenStream2 {
|
|
|
98
98
|
|
|
99
99
|
fn generate_assets(ident: &syn::Ident, folder_path: String) -> TokenStream2 {
|
|
100
100
|
let embedded_impl = embedded(ident, folder_path.clone());
|
|
101
|
-
if cfg!(feature = "
|
|
101
|
+
if cfg!(feature = "debug-embed") {
|
|
102
102
|
return embedded_impl;
|
|
103
103
|
}
|
|
104
104
|
|