# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95.0"
name = "ras-tokens"
version = "2.1.0"
authors = ["KeyCode17"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Token cost service with LiteLLM pricing fetch"
readme = false
license = "MIT"
repository = "https://github.com/KeyCode17/rust-ai-surfer"

[lib]
name = "ras_tokens"
path = "src/lib.rs"

[[test]]
name = "cost_test"
path = "tests/cost_test.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.once_cell]
version = "1.20"

[dependencies.ras-errors]
version = "2.1.0"

[dependencies.ras-llm]
version = "2.1.0"

[dependencies.ras-types]
version = "2.1.0"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "json",
    "stream",
]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[lints.clippy]
dbg_macro = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"
