~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.
f168a2be
—
Peter 6 years ago
Merge pull request #54 from Tangent128/rocket_4.0
- Cargo.toml +2 -4
- examples/rocket.rs +2 -3
Cargo.toml
CHANGED
|
@@ -17,13 +17,11 @@ rust-embed-impl = { version = "4.3.0", path = "impl"}
|
|
|
17
17
|
actix-web = { version = "0.7", optional = true }
|
|
18
18
|
mime_guess = { version = "2.0.0-alpha.6", optional = true }
|
|
19
19
|
|
|
20
|
-
rocket = { version = "0.
|
|
20
|
+
rocket = { version = "0.4.0", optional = true }
|
|
21
|
-
rocket_codegen = { version = "0.3.6", optional = true }
|
|
22
|
-
rocket_contrib = { version = "0.3.6", optional = true }
|
|
23
21
|
|
|
24
22
|
[features]
|
|
25
23
|
debug-embed = ["rust-embed-impl/debug-embed"]
|
|
26
|
-
nightly = ["rocket"
|
|
24
|
+
nightly = ["rocket"]
|
|
27
25
|
actix = ["actix-web", "mime_guess"]
|
|
28
26
|
|
|
29
27
|
[badges]
|
examples/rocket.rs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
#![feature(
|
|
1
|
+
#![feature(decl_macro, proc_macro_hygiene)]
|
|
2
|
-
#
|
|
2
|
+
#[macro_use]
|
|
3
3
|
extern crate rocket;
|
|
4
|
-
extern crate rocket_contrib;
|
|
5
4
|
#[macro_use]
|
|
6
5
|
extern crate rust_embed;
|
|
7
6
|
|