Cargo sets a bunch of environment variables for build time, which expose many of the fields defined in manifest’s package table.
My question is, are there any environment variables defined by rustc itself? I’m searching around, but can’t find an answer to this.
Specifically, I like to know if I can grab the crate name during compile time, as known to the complier.
I should add that, I’m not talking about those env-vars used by rustc, but those set by rustc to be used in the code.