I'm working on a procedural macro that needs a place to store the state in the system where it runs. The state must be cleared when
clean load it ran
In the past, I have assumed that
objective The directory is the right place. However, my guess is probably incorrect because:
- My files and directories may conflict with those of
- the location of the destination directory can be changed from the default one.
In an effort to avoid these problems, I have been trying to determine a way to locate a location correctly but I have not been successful. The closest thing I have found is the environment variable.
OUT_DIR that load is set for compilation scripts that, unfortunately, is not configured for procedure macro executions.
My question is: How can I determine a suitable place where I can store the artifacts that are cleaned when
clean load Does it run?
Keep in mind that this question is not a duplicate of a similar question here. That question covers the macro procedural status in general. This question is about determining an appropriate location within the file structure of a drawer.