# 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.85.0"
name = "rupia-core"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for rupia LLM output validation — parsing, coercion, schema validation, feedback"
readme = false
license = "MIT"
repository = "https://github.com/LeeSangMin1029/rupia"

[features]
default = []
semantic = [
    "dep:safetensors",
    "dep:memmap2",
    "dep:tokenizers",
    "dep:half",
    "dep:hf-hub",
]

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

[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false

[dependencies.datalogic-rs]
version = "4.0.19"

[dependencies.half]
version = "2.0"
optional = true

[dependencies.hf-hub]
version = "0.4"
optional = true

[dependencies.jsonschema]
version = "0.28"

[dependencies.memmap2]
version = "0.9"
optional = true

[dependencies.regex-lite]
version = "0.1"

[dependencies.reqwest]
version = "0.12"
features = [
    "blocking",
    "json",
]

[dependencies.safetensors]
version = "0.5"
optional = true

[dependencies.schemars]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokenizers]
version = "0.21"
features = [
    "fancy-regex",
    "progressbar",
    "esaxx_fast",
    "http",
]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.schemars]
version = "0.8"

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

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

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1
