You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My build script parses large and constant text files to spit their content into a constants.rs file. The reason for this is to ignore file loading headaches, by already having the file loaded in memory by the time you execute the program.
cargo web start is incompatible with this, because it watches all source files for changes. When a file is changed (like main.rs), it launches a build. The build generates a new constants.rs, and the build restarts again and again, until I kill the process.
I recommend a regex or array in the Web.toml where you can include files to be excluded by the watch, to allow codegen tools and file watching to coexist peacefully 😄!
The text was updated successfully, but these errors were encountered:
My build script parses large and constant text files to spit their content into a
constants.rs
file. The reason for this is to ignore file loading headaches, by already having the file loaded in memory by the time you execute the program.cargo web start
is incompatible with this, because it watches all source files for changes. When a file is changed (likemain.rs
), it launches a build. The build generates a newconstants.rs
, and the build restarts again and again, until I kill the process.I recommend a regex or array in the
Web.toml
where you can include files to be excluded by the watch, to allow codegen tools and file watching to coexist peacefully 😄!The text was updated successfully, but these errors were encountered: