Cargo.toml 2.67 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
# SPDX-License-Identifier: Apache-2.0

4
5
6
7
[workspace]
# empty workspace to exclude from top level workspace
# excluded due to pyo3 extension module build issues

8
[package]
Neelay Shah's avatar
Neelay Shah committed
9
name = "dynamo-py3"
10
version = "1.0.0"
11
edition = "2024"
12
13
authors = ["NVIDIA"]
license = "Apache-2.0"
Neelay Shah's avatar
Neelay Shah committed
14
15
homepage = "https://github.com/ai-dynamo/dynamo"
repository = "https://github.com/ai-dynamo/dynamo.git"
16
17
18
19
20

[lib]
path = "rust/lib.rs"
name = "_core"
# "cdylib" is necessary to produce a shared library for Python to import from.
21
22
# "rlib" is necessary to support doctests.
crate-type = ["cdylib", "rlib"]
23

24
25
[features]
default = []
26
media-ffmpeg = ["dynamo-llm/media-ffmpeg"]
27
kv-indexer = ["dep:clap", "dep:tracing-subscriber"]
28
kv-indexer-metrics = ["kv-indexer", "dynamo-kv-router/metrics"]
29
nvtx = ["dynamo-runtime/nvtx"]
Neelay Shah's avatar
Neelay Shah committed
30

31
[dependencies]
Neelay Shah's avatar
Neelay Shah committed
32
dynamo-runtime = { path = "../../runtime" }
33
dynamo-mocker = { path = "../../mocker" }
34
dynamo-parsers = { path = "../../parsers" }
35

36
37
anyhow = { version = "1" }
async-trait = { version = "0.1" }
38
dashmap = { version = "6.1" }
39
futures = { version = "0.3" }
40
rmp = { version = "0.8" }
41
once_cell = { version = "1.20.3" }
42
parking_lot = { version = "0.12.4" }
43
44
45
serde = { version = "1" }
serde_json = { version = "1.0.138" }
thiserror = { version = "2.0" }
46
tokio = { version = "1.46.0", features = ["full"] }
47
tokio-stream = { version = "0" }
Ryan Olson's avatar
Ryan Olson committed
48
tokio-util = { version = "0.7", features = ["rt"] }
49
tracing = { version = "0" }
50
uuid = { version = "1.18.1" }
51

52
53
# kv-indexer / shared kv-router types
dynamo-kv-router = { path = "../../kv-router", features = ["standalone-indexer"] }
54
55
56
clap = { version = "4.5", features = ["derive"], optional = true }
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }

57
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
58
# "abi3-py310" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.10, which is the minimum version in pyproject.toml
59
60
61
62
63
64
pyo3 = { version = "0.23.4", default-features = false, features = [
  "macros",
  "experimental-async",
  "experimental-inspect",
  "extension-module",
  "py-clone",
65
  "abi3-py310"
66
67
68
69
70
71
72
73
74
] }

pyo3-async-runtimes = { version = "0.23.0", default-features = false, features = [
  "attributes",
  "testing",
  "tokio-runtime",
  "unstable-streams",
] }

75
pythonize = "0.23"
76

Ryan Olson's avatar
Ryan Olson committed
77

78
79
80
81
82
83
[target.'cfg(target_os = "linux")'.dependencies]
dynamo-llm = { path = "../../llm" }

[target.'cfg(not(target_os = "linux"))'.dependencies]
dynamo-llm = { path = "../../llm", default-features = false }

Ryan Olson's avatar
Ryan Olson committed
84
[dev-dependencies]
85
86
87
88
89

[profile.profiling]
inherits = "release"
debug = true
strip = false