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


c5943eaf pyros2097

8 years ago
Fix Readme example
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -67,7 +67,7 @@ use hyper::net::Fresh;
67
67
  mod assets;
68
68
 
69
69
  fn handle_index(_: Request, res: Response<Fresh>) {
70
- res.send(&assets::index_html).unwrap();
70
+ res.send(&assets::examples_public_index_html).unwrap();
71
71
  // or
72
72
  // res.send(assets::get("examples/public/index.html").unwrap()).unwrap();
73
73
  }