1
Fork 0
mirror of https://github.com/RGBCube/embd-rs synced 2025-07-27 13:37:44 +00:00

Add readme flatten example

This commit is contained in:
RGBCube 2024-01-04 16:03:52 +03:00
parent 531adba675
commit 4009d68579
No known key found for this signature in database

View file

@ -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 bytes: Cow<'_, [u8]> = embed::bytes!("path/to/image.png");
let dir: embed::Dir = embed::dir!("path/to"); let dir: embed::Dir = embed::dir!("path/to");
let files: Vec<embed::File> = dir.flatten();
``` ```
## License ## License