From f95ae540e8e70033f8ade6f0eca68bb157ed5197 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 5 Jun 2025 09:00:33 +0000 Subject: [PATCH] Add CARGO_PKG_LICENSE environment variable to Rust compiler context --- rust/private/rustc.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index d78c28902c..e08b4e8b44 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -141,6 +141,7 @@ def _get_rustc_env(attr, toolchain, crate_name): "CARGO_PKG_VERSION_MINOR": minor, "CARGO_PKG_VERSION_PATCH": patch, "CARGO_PKG_VERSION_PRE": pre, + "CARGO_PKG_LICENSE": "", } if hasattr(attr, "_is_proc_macro_dep_enabled") and attr._is_proc_macro_dep_enabled[IsProcMacroDepEnabledInfo].enabled: is_proc_macro_dep = "0"