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


07a1135d Ryan Lopopolo

6 years ago
Enumerate examples to require features
Files changed (1) hide show
  1. Cargo.toml +10 -0
Cargo.toml CHANGED
@@ -20,6 +20,16 @@ name = "interpolated_path"
20
20
  path = "tests/interpolated_path.rs"
21
21
  required-features = ["interpolate-folder-path"]
22
22
 
23
+ [[example]]
24
+ name = "rocket"
25
+ path = "examples/rocket.rs"
26
+ required-features = ["rocket"]
27
+
28
+ [[example]]
29
+ name = "warp"
30
+ path = "examples/warp.rs"
31
+ required-features = ["warp"]
32
+
23
33
  [dependencies]
24
34
  walkdir = "2.2.7"
25
35
  rust-embed-impl = { version = "4.4.0", path = "impl"}