litellm/litellm-rust/crates/cost/Cargo.toml
Yujong Lee c57274fa12 refactor(cost): price token usage with the Rust cost core [08/12]
cost::calculate prices token meters over the typed Prices every row lowers into, with one line per meter and the
borrowed rate named in fallback_from. generic_cost_per_token prices through Prices.price and as_main_cost, per-call
custom pricing is an overlay that never writes the shared row, and a directly written bad price is unpriced with one
log line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 09:11:19 -07:00

20 lines
505 B
TOML

[package]
name = "litellm-cost"
version = "0.1.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
[features]
serde = ["dep:serde"]
schema = ["serde", "dep:schemars"]
[dependencies]
jiff = { version = "0.2.37", default-features = false, features = ["std", "tzdb-bundle-always"] }
schemars = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
thiserror.workspace = true
[dev-dependencies]
rstest.workspace = true
serde_json.workspace = true