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


8e401265 Peter John

5 years ago
Merge pull request #109 from ignatenkobrain/required-features
Files changed (1) hide show
  1. 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"}