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
When reading sample from file using the procedural macro (e.g. json_typegen!("Point", "point.json")), if the sample file changes the compiler will not be aware that anything relevant has changed and so will not recompile.
There is a hack we can do to let the compiler know we are using a file. Output code like this in addition to the actual code:
When reading sample from file using the procedural macro (e.g.
json_typegen!("Point", "point.json")
), if the sample file changes the compiler will not be aware that anything relevant has changed and so will not recompile.There is a hack we can do to let the compiler know we are using a file. Output code like this in addition to the actual code:
Tracking issue for better way to do this (from which the snippet above was taken): rust-lang/rust#73921
The text was updated successfully, but these errors were encountered: