~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.
f5b99ffc
—
Peter John 4 years ago
Merge pull request #129 from paolobarbolini/syn-compat
- impl/Cargo.toml +1 -0
- impl/src/lib.rs +2 -1
impl/Cargo.toml
CHANGED
|
@@ -19,6 +19,7 @@ rust-embed-utils = { version = "5.0.0", path = "../utils"}
|
|
|
19
19
|
|
|
20
20
|
syn = "1"
|
|
21
21
|
quote = "1"
|
|
22
|
+
proc-macro2 = "1"
|
|
22
23
|
walkdir = "2.3.1"
|
|
23
24
|
|
|
24
25
|
[dependencies.shellexpand]
|
impl/src/lib.rs
CHANGED
|
@@ -4,8 +4,9 @@ extern crate quote;
|
|
|
4
4
|
extern crate proc_macro;
|
|
5
5
|
|
|
6
6
|
use proc_macro::TokenStream;
|
|
7
|
+
use proc_macro2::TokenStream as TokenStream2;
|
|
7
8
|
use std::{env, path::Path};
|
|
8
|
-
use syn::{
|
|
9
|
+
use syn::{Data, DeriveInput, Fields, Lit, Meta};
|
|
9
10
|
|
|
10
11
|
fn embedded(ident: &syn::Ident, folder_path: String) -> TokenStream2 {
|
|
11
12
|
extern crate rust_embed_utils;
|