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


a4423fa0 chanble

3 years ago
fix poem example error
Files changed (1) hide show
  1. examples/poem.rs +1 -1
examples/poem.rs CHANGED
@@ -9,7 +9,7 @@ async fn main() -> Result<(), std::io::Error> {
9
9
  let app = Route::new().at("/", StaticEmbed).at("/index.html", StaticEmbed).nest("/dist", StaticEmbed);
10
10
 
11
11
  let listener = TcpListener::bind("127.0.0.1:3000");
12
- let server = Server::new(listener).await?;
12
+ let server = Server::new(listener);
13
13
  server.run(app).await?;
14
14
  Ok(())
15
15
  }