~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.
3fc67976
—
frederikhors 3 years ago
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]
|