Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check files exist at compile time #242

Open
syedelec opened this issue Apr 11, 2024 · 2 comments
Open

Check files exist at compile time #242

syedelec opened this issue Apr 11, 2024 · 2 comments

Comments

@syedelec
Copy link

syedelec commented Apr 11, 2024

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

@pyrossh
Copy link
Owner

pyrossh commented Apr 19, 2024

Maybe this needs a check. Would you be interested in a PR?

@syedelec
Copy link
Author

syedelec commented Apr 22, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants