~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.
b8c122cd
—
pyrossh 7 months ago
update readme
README.md
CHANGED
|
@@ -161,37 +161,16 @@ fn main() {
|
|
|
161
161
|
|
|
162
162
|
## Examples
|
|
163
163
|
|
|
164
|
+
```sh
|
|
164
|
-
|
|
165
|
+
cargo run --example basic # dev mode where it reads from the fs
|
|
165
|
-
|
|
166
|
-
`cargo run --example basic`
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
cargo run --example basic --release # release mode where it reads from binary
|
|
169
|
-
|
|
170
|
-
`cargo run --example basic --release`
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
cargo run --example actix --features actix # https://github.com/actix/actix-web
|
|
173
|
-
|
|
174
|
-
`cargo run --example actix --features actix`
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
cargo run --example rocket --features rocket # https://github.com/SergioBenitez/Rocket
|
|
177
|
-
|
|
178
|
-
`cargo run --example rocket --features rocket`
|
|
179
|
-
|
|
180
|
-
|
|
169
|
+
cargo run --example warp --features warp-ex # https://github.com/seanmonstar/warp
|
|
181
|
-
|
|
182
|
-
`cargo run --example warp --features warp-ex`
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
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
|
-
|
|
172
|
+
cargo run --example salvo --features salvo-ex # https://github.com/salvo-rs/salvo
|
|
193
|
-
|
|
194
|
-
`
|
|
173
|
+
```
|
|
195
174
|
|
|
196
175
|
## Testing
|
|
197
176
|
|