mirror of
https://github.com/RGBCube/embd-rs
synced 2025-07-26 21:17:44 +00:00
Add readme flatten example
This commit is contained in:
parent
531adba675
commit
4009d68579
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ let contents: Cow<'_, str> = embed::string!("path/to/file.txt");
|
|||
let bytes: Cow<'_, [u8]> = embed::bytes!("path/to/image.png");
|
||||
|
||||
let dir: embed::Dir = embed::dir!("path/to");
|
||||
let files: Vec<embed::File> = dir.flatten();
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue