~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.


dad74ef0 pyros2097

7 years ago
Merge pull request #21 from Mcat12/tweak/remove-log
Files changed (3) hide show
  1. Cargo.toml +0 -1
  2. src/lib.rs +1 -3
  3. tests/lib.rs +0 -2
Cargo.toml CHANGED
@@ -16,7 +16,6 @@ proc-macro = true
16
16
  [dependencies]
17
17
  syn = "0.11"
18
18
  quote = "0.3"
19
- log = "0.4"
20
19
  walkdir = "2.1.4"
21
20
 
22
21
  [dev-dependencies]
src/lib.rs CHANGED
@@ -1,6 +1,4 @@
1
1
  #![recursion_limit = "1024"]
2
- #[macro_use]
3
- extern crate log;
4
2
  extern crate proc_macro;
5
3
  #[macro_use]
6
4
  extern crate quote;
@@ -119,7 +117,7 @@ fn impl_rust_embed(ast: &syn::DeriveInput) -> Tokens {
119
117
  panic!("#[derive(RustEmbed)] attribute value must be a string literal");
120
118
  }
121
119
  };
122
- info!("folder: {}", folder_path);
120
+ println!("folder: {}", folder_path);
123
121
  generate_assets(ident, folder_path)
124
122
  }
125
123
 
tests/lib.rs CHANGED
@@ -1,7 +1,5 @@
1
1
  #![feature(attr_literals)]
2
2
  #[macro_use]
3
- extern crate log;
4
- #[macro_use]
5
3
  extern crate rust_embed;
6
4
 
7
5
  #[test]