rig-model-meta 0.1.0

Provider-agnostic model metadata (context window, capabilities, quantization) and probe traits for Rig agents.
# 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.89"
name = "rig-model-meta"
version = "0.1.0"
authors = ["ForeverAngry"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provider-agnostic model metadata (context window, capabilities, quantization) and probe traits for Rig agents."
readme = "README.md"
keywords = [
    "rig",
    "llm",
    "model",
    "context-window",
    "telemetry",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ForeverAngry/rig-model-meta"

[features]
default = []
observe = ["rig-hook"]
ollama = ["dep:reqwest"]
pricing = []
rig-hook = ["dep:rig-core"]
static = []

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

[[example]]
name = "chained"
path = "examples/chained.rs"
required-features = ["static"]

[[example]]
name = "probe_ollama"
path = "examples/probe_ollama.rs"
required-features = ["ollama"]

[[test]]
name = "pricing"
path = "tests/pricing.rs"
required-features = ["pricing"]

[[test]]
name = "static_catalog"
path = "tests/static_catalog.rs"
required-features = ["static"]

[dependencies.parking_lot]
version = "0.12.5"

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

[dependencies.rig-core]
version = "0.37"
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0.140"

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tracing]
version = "0.1.41"

[dev-dependencies.anyhow]
version = "1.0.102"

[dev-dependencies.tokio]
version = "1.51.1"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[lints.clippy]
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
dbg_macro = "forbid"
expect_fun_call = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
panic_in_result_fn = "deny"
todo = "forbid"
unimplemented = "forbid"
unreachable = "deny"
unwrap_used = "deny"

[profile.release]
opt-level = "s"
lto = true