pub fn get( config: QueryConfig<'_>, target: Option<&str>, extra_env: &FxHashMap<String, Option<String>>, ) -> Result<String>
Uses rustc --print target-spec-json.
rustc --print target-spec-json