rust-embed v8.11.0
git clone https://git.pyrossh.dev/rust-embed
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
3fc6797
— frederikhors
2022-08-28T17:14:09+02:00
upd assets dir
examples/axum-spa/main.rs
CHANGED
|
@@ -11,7 +11,7 @@ use std::net::SocketAddr;
|
|
|
11
11
|
static INDEX_HTML: &str = "index.html";
|
|
12
12
|
|
|
13
13
|
#[derive(RustEmbed)]
|
|
14
|
-
#[folder = "assets/"]
|
|
14
|
+
#[folder = "examples/axum-spa/assets/"]
|
|
15
15
|
struct Assets;
|
|
16
16
|
|
|
17
17
|
#[tokio::main]
|