modelexpress-common 0.2.2

Shared utilities for Model Express client and server
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 = "2024"
name = "modelexpress-common"
version = "0.2.2"
authors = ["NVIDIA Inc. <sw-dl-dynamo@nvidia.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared utilities for Model Express client and server"
homepage = "https://github.com/ai-dynamo/modelexpress"
readme = false
keywords = [
    "llm",
    "inference",
    "nvidia",
]
license = "Apache-2.0"
repository = "https://github.com/ai-dynamo/modelexpress.git"

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

[dependencies.anyhow]
version = "1.0.98"
features = ["backtrace"]

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

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

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]

[dependencies.config]
version = "0.15"
features = [
    "yaml",
    "toml",
    "json",
]

[dependencies.hf-hub]
version = "0.4.3"
features = [
    "tokio",
    "rustls-tls",
]
default-features = false

[dependencies.jiff]
version = "0.2.15"
features = ["serde"]

[dependencies.prost]
version = "0.13"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tonic]
version = "0.13"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.mockall]
version = "0.13"

[dev-dependencies.tempfile]
version = "3.20"

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wiremock]
version = "0.6.5"

[build-dependencies.tonic-build]
version = "0.13"

[lints.clippy]
alloc_instead_of_core = "deny"
allow_attributes = "allow"
arbitrary_source_item_ordering = "allow"
arithmetic_side_effects = "deny"
expect_used = "deny"
implicit_return = "allow"
missing_errors_doc = "allow"
mod_module_files = "deny"
print_stdout = "allow"
pub_use = "allow"
pub_with_shorthand = "allow"
pub_without_shorthand = "deny"
question_mark_used = "allow"
self_named_module_files = "allow"
shadow_reuse = "allow"
shadow_same = "allow"
shadow_unrelated = "allow"
single_call_fn = "allow"
todo = "allow"
unwrap_used = "deny"
use_debug = "allow"

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

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

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

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

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

[lints.rust]