Static Loader doesn't notice new files when rebuilding #2
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
When I use
include_str
or similar macros, if I change the referenced file and rebuild, cargo notices the change and rebuilds the source file.Unfortunately, in my initial testing, I can't seem to get the static_loader! to reload new content without changing some other source file. Is there a way to get the static_loader! macro to notify Cargo that it's depending on those files and to rebuild if they change?
The way I'm testing is I have this snippet:
And I load it and render a string out from the referenced
LOCALES
, and if I run the program once, change the string,cargo run
again I don't see the new value. If Icargo clean
I do.Thank you for the great library; it is very easy to use.
The text was updated successfully, but these errors were encountered: