~repos /rust-embed

#rust#proc-macro#http

git clone https://pyrossh.dev/repos/rust-embed.git
Discussions: https://groups.google.com/g/rust-embed-devs

rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.


Files changed (3) hide show
  1. .github/workflows/test.yml +2 -0
  2. Cargo.toml +0 -1
  3. readme.md +2 -2
.github/workflows/test.yml CHANGED
@@ -36,9 +36,11 @@ jobs:
36
36
  cargo test --test interpolated_path --features "interpolate-folder-path"
37
37
  cargo test --test interpolated_path --features "interpolate-folder-path" --release
38
38
  cargo build --example basic
39
+ cargo build --example rocket --features rocket
39
40
  cargo build --example actix --features actix
40
41
  cargo build --example warp --features warp-ex
41
42
  cargo test --test lib --release
42
43
  cargo build --example basic --release
44
+ cargo build --example rocket --features rocket --release
43
45
  cargo build --example actix --features actix --release
44
46
  cargo build --example warp --features warp-ex --release
Cargo.toml CHANGED
@@ -69,7 +69,6 @@ debug-embed = ["rust-embed-impl/debug-embed", "rust-embed-utils/debug-embed"]
69
69
  interpolate-folder-path = ["rust-embed-impl/interpolate-folder-path"]
70
70
  compression = ["rust-embed-impl/compression", "include-flate"]
71
71
  include-exclude = ["rust-embed-impl/include-exclude", "rust-embed-utils/include-exclude"]
72
- nightly = ["rocket"]
73
72
  actix = ["actix-web", "mime_guess"]
74
73
  warp-ex = ["warp", "tokio", "mime_guess"]
75
74
  axum-ex = ["axum", "tokio", "mime_guess"]
readme.md CHANGED
@@ -151,9 +151,9 @@ Note: To run the `actix-web` example:
151
151
 
152
152
  `cargo run --example actix --features actix`
153
153
 
154
- Note: To run the `rocket` example, add the `nightly` feature flag and run on a nightly build:
154
+ Note: To run the `rocket` example:
155
155
 
156
- `cargo +nightly run --example rocket --features nightly`
156
+ `cargo run --example rocket --features rocket`
157
157
 
158
158
  Note: To run the `warp` example:
159
159