~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.
dc4d0fee
—
Igor Raits 5 years ago
Specify required-features for examples/tests which require non-default features
- Cargo.toml +20 -0
Cargo.toml
CHANGED
|
@@ -11,6 +11,26 @@ categories = ["web-programming::http-server"]
|
|
|
11
11
|
authors = ["pyros2097 <pyros2097@gmail.com>"]
|
|
12
12
|
edition = "2018"
|
|
13
13
|
|
|
14
|
+
[[example]]
|
|
15
|
+
name = "warp"
|
|
16
|
+
path = "examples/warp.rs"
|
|
17
|
+
required-features = ["warp-ex"]
|
|
18
|
+
|
|
19
|
+
[[example]]
|
|
20
|
+
name = "actix"
|
|
21
|
+
path = "examples/actix.rs"
|
|
22
|
+
required-features = ["actix"]
|
|
23
|
+
|
|
24
|
+
[[example]]
|
|
25
|
+
name = "rocket"
|
|
26
|
+
path = "examples/rocket.rs"
|
|
27
|
+
required-features = ["rocket"]
|
|
28
|
+
|
|
29
|
+
[[test]]
|
|
30
|
+
name = "interpolated_path"
|
|
31
|
+
path = "tests/interpolated_path.rs"
|
|
32
|
+
required-features = ["interpolate-folder-path"]
|
|
33
|
+
|
|
14
34
|
[dependencies]
|
|
15
35
|
walkdir = "2.2.7"
|
|
16
36
|
rust-embed-impl = { version = "5.5.1", path = "impl"}
|