Cargo.toml 1.44 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
4
5
6
7
# SPDX-License-Identifier: Apache-2.0
#
# Based on https://github.com/64bit/async-openai/ by Himanshu Neema
# Original Copyright (c) 2022 Himanshu Neema
# Licensed under MIT License (see ATTRIBUTIONS-Rust.md)
#
8
# Modifications Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES.
9
10
11
# Licensed under Apache 2.0

[package]
12
name = "dynamo-protocols"
13
description = "Protocol types for OpenAI-compatible inference APIs with inference-serving extensions."
14
license = "Apache-2.0 AND MIT"
15
16
17
18
19
20
21
22
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
readme.workspace = true

[dependencies]
23
24
25
26
27
28
29
30
31
32
# Upstream OpenAI types (types-only, no HTTP client)
async-openai = { version = "0.34", default-features = false, features = [
    "chat-completion-types",
    "response-types",
    "completion-types",
    "embedding-types",
    "image-types",
] }

# Serialization
33
34
serde = { workspace = true }
serde_json = { workspace = true }
35
36
37
derive_builder = { workspace = true }

# Type support
38
39
40
41
thiserror = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }
uuid = { workspace = true }
42
43
futures = { workspace = true }

44

45
46

[dev-dependencies]
47
tokio = { workspace = true }
48
tokio-test = "0.4.4"
49
serde_json = { workspace = true }
50
51
52
53

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]