~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.
d4c824d4
—
Paolo Barbolini 5 years ago
examples: reduce compile times by disabling default features
- Cargo.toml +3 -3
Cargo.toml
CHANGED
|
@@ -17,12 +17,12 @@ rust-embed-impl = { version = "5.3.0", path = "impl"}
|
|
|
17
17
|
rust-embed-utils = { version = "5.0.0", path = "utils"}
|
|
18
18
|
|
|
19
19
|
include-flate = { version = "0.1", optional = true, features = ["stable"] }
|
|
20
|
-
actix-web = { version = "2", optional = true }
|
|
20
|
+
actix-web = { version = "2", default-features = false, optional = true }
|
|
21
21
|
actix-rt = { version = "1", optional = true }
|
|
22
22
|
mime_guess = { version = "2", optional = true }
|
|
23
23
|
tokio = { version = "0.2", optional = true, features = ["macros"] }
|
|
24
|
-
warp = { version = "0.2", optional = true }
|
|
24
|
+
warp = { version = "0.2", default-features = false, optional = true }
|
|
25
|
-
rocket = { version = "0.4.2", optional = true }
|
|
25
|
+
rocket = { version = "0.4.2", default-features = false, optional = true }
|
|
26
26
|
|
|
27
27
|
[features]
|
|
28
28
|
debug-embed = ["rust-embed-impl/debug-embed", "rust-embed-utils/debug-embed"]
|