To clarify, if I have a dependency which checks their configs into source control and includes them in the published crate, cargo won't load them? Even if .cargo/config.toml includes a [patch] section, or something similar?
Regardless, it would be nice to know which cargo commands can execute arbitrary code vs. which commands can't, as it isn't obvious to me at first blush.
Correct. Config is for environmental / transient settings. It is dependent on the environment it is run from independent of the project. The one exception is cargo install which only loads user-wide config and not directory-config.