~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.
8d722d3e
—
pyros2097 7 years ago
update readme
readme.md
CHANGED
|
@@ -19,7 +19,7 @@ these are macros which generate code at compile time for only files.
|
|
|
19
19
|
|
|
20
20
|
```
|
|
21
21
|
[dependencies]
|
|
22
|
-
rust-embed="0.
|
|
22
|
+
rust-embed="0.5.0"
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Documentation
|
|
@@ -49,7 +49,7 @@ To run the example in dev mode where it reads from the fs,
|
|
|
49
49
|
|
|
50
50
|
`cargo run --example rocket`
|
|
51
51
|
|
|
52
|
-
To run the example in release mode where it
|
|
52
|
+
To run the example in release mode where it reads from binary,
|
|
53
53
|
|
|
54
54
|
`cargo run --release --example rocket`
|
|
55
55
|
## Testing
|