Cargo.toml 1.81 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
13
name = "dynamo-protocols"
description = "Protocol types for OpenAI-compatible inference APIs, forked from async-openai."
14
license = "Apache-2.0 AND MIT"
15
16
17
18
19
20
21
22
23
24
25
26
27
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
repository.workspace = true
readme.workspace = true

[features]
realtime = ["dep:tokio-tungstenite"]
# Bring your own types
byot = []

[dependencies]
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
futures = { workspace = true }
rand = { workspace = true }
reqwest = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }
uuid = { workspace = true }
derive_builder = { workspace = true }
bytes = { workspace = true }

eventsource-stream = "0.2.3"
44
async-openai-macros = "0.1.0"
45
46
47
48
49
backoff = { version = "0.4.0", features = ["tokio"] }
base64 = "0.22.1"
reqwest-eventsource = "0.6.0"
secrecy = { version = "0.10.3", features = ["serde"] }
tokio-tungstenite = { version = "0.26.1", optional = true, default-features = false }
50
utoipa = { version = "5.3", features = ["url", "uuid"] }
51
52
53

[dev-dependencies]
tokio-test = "0.4.4"
54
serde_json = { workspace = true }
55
56
57
58
59
60
61
62

[[test]]
name = "bring-your-own-type"
required-features = ["byot"]

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