sz-orm-model-ops 6.0.0

AI model operations: local inference, routing, finetuning, evaluation
Documentation
# 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 = "2021"
name = "sz-orm-model-ops"
version = "6.0.0"
authors = ["SZ-ORM Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI model operations: local inference, routing, finetuning, evaluation"
homepage = "https://github.com/ljclz/sz-orm"
readme = false
keywords = [
    "orm",
    "database",
    "async",
    "sql",
    "tokio",
]
categories = [
    "database",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/ljclz/sz-orm"

[features]
default = []
model-ops = [
    "dep:sz-orm-ai",
    "dep:serde",
    "dep:serde_json",
    "dep:async-trait",
    "dep:tokio",
    "dep:tracing",
    "dep:chrono",
    "sz-orm-ai/multi-llm",
]
model-ops-llamacpp = [
    "model-ops",
    "dep:reqwest",
]
model-ops-router = ["model-ops"]
model-ops-vllm = [
    "model-ops",
    "dep:reqwest",
]

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

[[test]]
name = "ab_test"
path = "tests/ab_test.rs"
required-features = ["model-ops"]

[[test]]
name = "evaluator"
path = "tests/evaluator.rs"
required-features = ["model-ops"]

[[test]]
name = "evaluator_mysql"
path = "tests/evaluator_mysql.rs"
required-features = ["model-ops"]

[[test]]
name = "finetune_dataset"
path = "tests/finetune_dataset.rs"
required-features = ["model-ops"]

[[test]]
name = "inference_opt"
path = "tests/inference_opt.rs"
required-features = ["model-ops"]

[[test]]
name = "llamacpp_provider"
path = "tests/llamacpp_provider.rs"
required-features = [
    "model-ops-llamacpp",
    "model-ops-vllm",
]

[[test]]
name = "model_router"
path = "tests/model_router.rs"
required-features = ["model-ops-router"]

[[test]]
name = "vllm_provider"
path = "tests/vllm_provider.rs"
required-features = ["model-ops-vllm"]

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

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

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

[dependencies.serde]
version = "1"
features = [
    "derive",
    "std",
]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sz-orm-ai]
version = "6.0.0"
optional = true

[dependencies.sz-orm-masking]
version = "6.0.0"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.40"
features = ["full"]
optional = true

[dependencies.tracing]
version = "0.1"
features = ["attributes"]
optional = true

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.sz-orm-sqlx]
version = "6.0.0"

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

[lints.clippy]
module_name_repetitions = "allow"
type_complexity = "allow"

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

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"