litellm/litellm-rust/crates/python-bridge/Cargo.toml
Yujong Lee b7453a25d7 perf(rust): make mimalloc opt-in behind a cargo feature
pydantic-core shipped mimalloc from Jun 2022 to Aug 2023 and removed it
(pydantic-core#900) after: a TLS-linkage fix (pydantic-core#363), manylinux
cross-compile breakage (pydantic-core#893), 1GiB of reserved virtual memory
at import breaking RLIMIT_AS-limited processes (pydantic#7167), and
container memory-footprint complaints (pydantic#6620). litellm wheels land
in exactly those memory-limited container deployments, so the allocator
override must be an explicit build-time choice, not a default imposed on
every wheel. The feature stays available for self-built deployments that
want it; wheels build without it.
2026-09-03 10:15:03 -07:00

39 lines
919 B
TOML

[package]
name = "litellm-python-bridge"
version = "0.1.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
[lib]
name = "_native"
crate-type = ["cdylib"]
[features]
default = ["abi3"]
abi3 = ["pyo3/abi3-py310"]
extension-module = ["pyo3/extension-module"]
mimalloc = ["dep:mimalloc"]
panic-test = []
[dependencies]
futures-util.workspace = true
mimalloc = { workspace = true, optional = true }
tracing.workspace = true
tracing-subscriber.workspace = true
litellm-core = { workspace = true, features = ["bedrock-auth"] }
litellm-ai-gateway = { workspace = true, default-features = false }
litellm-python-interop.workspace = true
pyo3.workspace = true
pyo3-async-runtimes.workspace = true
serde.workspace = true
serde_json.workspace = true
tokio.workspace = true
[dev-dependencies]
criterion = "0.8.2"
tokio-tungstenite.workspace = true
[[bench]]
name = "serialization"
harness = false