litellm/litellm-rust/crates/python-bridge/build.rs
Yujong Lee b61449e35d
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
fix(gateway): read boot, OCR and config env settings through one injected Env
The gateway takes one Env snapshot, overlays config environment_variables on it and injects it into every reader, so OCR REQUEST_TIMEOUT, Vertex credentials, Messages thinking budgets and AWS credentials now see config env vars. Boot and UI settings move to Layered and envy is dropped. clippy.toml bans std::env::var

ProcessEnvironment is private to python-bridge, so library constructors take the lookup as a required argument instead of defaulting to the process (MessagesTransformContext, RedisCache, EnvironmentSecrets, OcrConnection). auth-aws reads every env-backed credential source through the lookup before handing the rest to the SDK chain, so the assume-role shortcut and the credentials it returns agree

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 10:02:00 -07:00

7 lines
333 B
Rust

#![allow(clippy::disallowed_methods)] // test and build tooling read their own settings from the process environment
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
println!("cargo:rustc-cdylib-link-arg=-undefined");
println!("cargo:rustc-cdylib-link-arg=dynamic_lookup");
}
}