rust-embed
rust-embed copied to clipboard
Check files exist at compile time
trafficstars
Hello
First thanks for your work!
I was wondering if there is a way to check that single files exist at compile time.
The folder is checked correctly however not files. I tried using #[include = "file"] to add 2 files but these files are not checked if present at compile time.
#[derive(Debug, RustEmbed)]
#[folder = "folder/config/"]
#[include = "file1"]
#[include = "file2"]
Thanks
Maybe this needs a check. Would you be interested in a PR?
I am not that proficient in rust but I can try.
How would you see the feature?
Have a directive #[files = ["folder/file1", "folder/file2] ? or do you have something else in mind?