~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.
ef6e84b9
—
Peter John 3 years ago
Update readme.md
readme.md
CHANGED
|
@@ -137,6 +137,11 @@ fn main() {
|
|
|
137
137
|
}
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
+
## Integrations
|
|
141
|
+
|
|
142
|
+
1. [Poem](https://github.com/poem-web/poem) for poem framework under feature flag "embed"
|
|
143
|
+
2. [warp_embed](https://docs.rs/warp-embed/latest/warp_embed/) for warp framework
|
|
144
|
+
|
|
140
145
|
## Examples
|
|
141
146
|
|
|
142
147
|
To run the example in dev mode where it reads from the fs,
|
|
@@ -147,19 +152,19 @@ To run the example in release mode where it reads from binary,
|
|
|
147
152
|
|
|
148
153
|
`cargo run --example basic --release`
|
|
149
154
|
|
|
150
|
-
Note: To run the
|
|
155
|
+
Note: To run the [actix-web](https://github.com/actix/actix-web) example:
|
|
151
156
|
|
|
152
157
|
`cargo run --example actix --features actix`
|
|
153
158
|
|
|
154
|
-
Note: To run the
|
|
159
|
+
Note: To run the [rocket](https://github.com/SergioBenitez/Rocket) example:
|
|
155
160
|
|
|
156
161
|
`cargo run --example rocket --features rocket`
|
|
157
162
|
|
|
158
|
-
Note: To run the
|
|
163
|
+
Note: To run the [warp](https://github.com/seanmonstar/warp) example:
|
|
159
164
|
|
|
160
165
|
`cargo run --example warp --features warp-ex`
|
|
161
166
|
|
|
162
|
-
Note: To run the
|
|
167
|
+
Note: To run the [axum](https://github.com/tokio-rs/axum) example:
|
|
163
168
|
|
|
164
169
|
`cargo run --example axum --features axum-ex`
|
|
165
170
|
|