~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.
00d74dbf
—
frederikhors 3 years ago
register in Cargo.toml; move main.rs in example root
- Cargo.toml +5 -0
- examples/axum-spa/{src/main.rs → main.rs} +0 -0
Cargo.toml
CHANGED
|
@@ -31,6 +31,11 @@ name = "axum"
|
|
|
31
31
|
path = "examples/axum.rs"
|
|
32
32
|
required-features = ["axum-ex"]
|
|
33
33
|
|
|
34
|
+
[[example]]
|
|
35
|
+
name = "axum-spa"
|
|
36
|
+
path = "examples/axum-spa/main.rs"
|
|
37
|
+
required-features = ["axum-ex"]
|
|
38
|
+
|
|
34
39
|
[[example]]
|
|
35
40
|
name = "poem"
|
|
36
41
|
path = "examples/poem.rs"
|
examples/axum-spa/{src/main.rs → main.rs}
RENAMED
|
File without changes
|