~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.
c5943eaf
—
pyros2097 8 years ago
Fix Readme example
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::
|
|
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
|
}
|