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


b8c122cd pyrossh

7 months ago
update readme
Files changed (1) hide show
  1. README.md +10 -31
README.md CHANGED
@@ -161,37 +161,16 @@ fn main() {
161
161
 
162
162
  ## Examples
163
163
 
164
+ ```sh
164
- To run the example in dev mode where it reads from the fs,
165
+ cargo run --example basic # dev mode where it reads from the fs
165
-
166
- `cargo run --example basic`
167
-
168
- To run the example in release mode where it reads from binary,
166
+ cargo run --example basic --release # release mode where it reads from binary
169
-
170
- `cargo run --example basic --release`
171
-
172
- Note: To run the [actix-web](https://github.com/actix/actix-web) example:
167
+ cargo run --example actix --features actix # https://github.com/actix/actix-web
173
-
174
- `cargo run --example actix --features actix`
175
-
176
- Note: To run the [rocket](https://github.com/SergioBenitez/Rocket) example:
168
+ cargo run --example rocket --features rocket # https://github.com/SergioBenitez/Rocket
177
-
178
- `cargo run --example rocket --features rocket`
179
-
180
- Note: To run the [warp](https://github.com/seanmonstar/warp) example:
169
+ cargo run --example warp --features warp-ex # https://github.com/seanmonstar/warp
181
-
182
- `cargo run --example warp --features warp-ex`
183
-
184
- Note: To run the [axum](https://github.com/tokio-rs/axum) example:
170
+ cargo run --example axum --features axum-ex # https://github.com/tokio-rs/axum
185
-
186
- `cargo run --example axum --features axum-ex`
187
-
188
- Note: To run the [poem](https://github.com/poem-web/poem) example:
171
+ cargo run --example poem --features poem-ex # https://github.com/poem-web/poem
189
-
190
- `cargo run --example poem --features poem-ex`
191
-
192
- Note: To run the [salvo](https://github.com/salvo-rs/salvo) example:
172
+ cargo run --example salvo --features salvo-ex # https://github.com/salvo-rs/salvo
193
-
194
- `cargo run --example salvo --features salvo-ex`
173
+ ```
195
174
 
196
175
  ## Testing
197
176