~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.
582feaba
—
pyros2097 7 years ago
update redme
readme.md
CHANGED
|
@@ -46,8 +46,11 @@ fn main() {
|
|
|
46
46
|
|
|
47
47
|
## Examples
|
|
48
48
|
To run the example in dev mode where it reads from the fs,
|
|
49
|
+
|
|
49
50
|
`cargo run --example rocket`
|
|
51
|
+
|
|
50
52
|
To run the example in release mode where it read from binary,
|
|
53
|
+
|
|
51
54
|
`cargo run --release --example rocket`
|
|
52
55
|
## Testing
|
|
53
56
|
debug: `cargo test --lib`
|