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


612610ae AlexW-GH

7 years ago
add #![allow(unknown_lints)]
Files changed (1) hide show
  1. src/main.rs +1 -0
src/main.rs CHANGED
@@ -88,6 +88,7 @@ fn main() {
88
88
 
89
89
  write!(output_buffer, "#![allow(dead_code)]");
90
90
  write!(output_buffer, "#![allow(non_upper_case_globals)]");
91
+ write!(output_buffer, "#![allow(unknown_lints)]");
91
92
  write!(output_buffer, "#![allow(clippy)]\n");
92
93
  write!(list, "{}", "\npub fn list() -> Vec<&'static str> {\n vec![\n");
93
94
  write!(pp, "{}", "\npub fn get(name: &str) -> Result<&[u8], &str> {\n match name {\n");