Is there any documentation on the layout of the target directory for a crate built with cargo?
In particular I'd like to know how I can deterministically determine the path of the executable when building a binary?
It seems like it generally looks something like
target/<target>/<profile>/<bin-name>. However, if the profile is "dev" (the default), then
<profile> is "debug" instead of the expected "dev", and if no target is explicitly specified, then that portion of the path is excluded. But I've just been able to figure that out from experimentation, and haven't been able to find any documentation on this, so I'm not sure if there are other edge cases I'm missing.