The metadata hash currently includes the __CARGO_DEFAULT_LIB_METADATA environment variable which is used for embedding the release channel in the hash. This is used by rustbuild, but the current cargo implementation does not use it. Need to consider if this is necessary.