Cargo.toml 2.22 KB
Newer Older
Richard Huo's avatar
Richard Huo committed
1
2
3
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

4
[workspace]
Richard Huo's avatar
Richard Huo committed
5
6
7

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

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

[features]
default = ["block-manager"]
24
block-manager = ["dynamo-llm/block-manager", "dep:dlpark", "dep:cudarc"]
Richard Huo's avatar
Richard Huo committed
25
26

[dependencies]
27
28
dynamo-llm = { path = "../../llm" }
dynamo-runtime = { path = "../../runtime" }
Richard Huo's avatar
Richard Huo committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

anyhow = { version = "1" }
async-stream = { version = "0.3" }
async-trait = { version = "0.1" }
derive-getters = "0.5"
either = { version = "1.13", features = ["serde"] }
futures = { version = "0.3" }
local-ip-address = { version = "0.6" }
once_cell = { version = "1.20.3" }
rand = { version = "0.9" }
socket2 = { version = "0.6" }
serde = { version = "1" }
serde_json = { version = "1.0.138" }
thiserror = { version = "2.0" }
tokio = { version = "1.46.0", features = ["full"] }
tokio-stream = { version = "0" }
tokio-util = { version = "0.7", features = ["rt"] }
tracing = { version = "0"  }
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
uuid = { version = "1.17", features = ["v4", "serde"] }

# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
# "abi3-py310" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.10
pyo3 = { version = "0.23.4", default-features = false, features = [
  "macros",
  "experimental-async",
  "experimental-inspect",
  "extension-module",
  "py-clone",
  "abi3-py310",
] }

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

pythonize = "0.23"

dlpark = { version = "0.5", features = ["pyo3", "half"], optional = true }
71
cudarc = { version = "0.16.2", features = ["cuda-12020"], optional = true }
Richard Huo's avatar
Richard Huo committed
72
73
74
75
prometheus = "0.14.0"

[dev-dependencies]
rstest = "0.25"