"vscode:/vscode.git/clone" did not exist on "a72d0dfa0219eb72ca97b41ff2dc207b06810e18"
Commit 3d292851 authored by Anant Sharma's avatar Anant Sharma Committed by GitHub
Browse files

build: add top level rust workspace (#137)

parent 404a78e9
...@@ -13,14 +13,6 @@ ...@@ -13,14 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["NVIDIA"]
license = "Apache-2.0"
homepage = "https://github.com/ai-dynamo/dynamo"
repository = "https://github.com/ai-dynamo/dynamo.git"
[package] [package]
name = "dynamo-llm" name = "dynamo-llm"
version.workspace = true version.workspace = true
...@@ -42,30 +34,7 @@ cuda = ["mistralrs/cuda", "llama-cpp-2/cuda"] ...@@ -42,30 +34,7 @@ cuda = ["mistralrs/cuda", "llama-cpp-2/cuda"]
metal = ["mistralrs/metal", "llama-cpp-2/metal"] metal = ["mistralrs/metal", "llama-cpp-2/metal"]
vulkan = ["llama-cpp-2/vulkan"] vulkan = ["llama-cpp-2/vulkan"]
[workspace.dependencies]
# local or crates.io
dynamo-runtime = { version = "0.1.0", path = "../runtime" }
# crates.io
anyhow = { version = "1" }
async-stream = { version = "0.3" }
async-trait = { version = "0.1" }
bytes = "1"
derive_builder = "0.20"
futures = "0.3"
serde = { version = "1", features = ["derive"] }
thiserror = { version = "2.0.11" }
tokio = { version = "1", features = ["full"] }
tokio-stream = { version = "0.1" }
tokio-util = { version = "0.7", features = ["codec", "net"] }
tracing = { version = "0.1" }
validator = { version = "0.20.0", features = ["derive"] }
uuid = { version = "1", features = ["v4", "serde"] }
xxhash-rust = { version = "0.8", features = ["xxh3", "const_xxh3"] }
strum = { version = "0.27", features = ["derive"] }
[dependencies] [dependencies]
# repo # repo
dynamo-runtime = { workspace = true } dynamo-runtime = { workspace = true }
......
[toolchain]
channel = "1.85.0"
This diff is collapsed.
...@@ -15,57 +15,56 @@ ...@@ -15,57 +15,56 @@
[package] [package]
name = "dynamo-runtime" name = "dynamo-runtime"
description = "Distributed Inference Framework"
readme = "README.md" readme = "README.md"
version = "0.1.0" # TODO: Centralize Version Automation version.workspace = true
edition = "2021" edition.workspace = true
authors = ["NVIDIA"] authors.workspace = true
license = "Apache-2.0" license.workspace = true
homepage = "https://github.com/ai-dynamo/dynamo" homepage.workspace = true
repository = "https://github.com/ai-dynamo/dynamo.git" repository.workspace = true
keywords = ["llm", "genai", "inference", "nvidia", "distributed", "dynamo"]
[features] [features]
default = [] default = []
integration = [] integration = []
[dependencies] [dependencies]
# workspace - when we expand to multiple crates; put these in the workspace # Use workspace dependencies where available
anyhow = { version = "1" } anyhow = { workspace = true }
async-nats = { version = "0.38", features = ["service"] } async-nats = { workspace = true }
async-stream = { version = "0.3" } async-stream = { workspace = true }
async-trait = { version = "0.1" } async-trait = { workspace = true }
async_zmq = "0.4.0" async_zmq = { workspace = true }
blake3 = "1" blake3 = { workspace = true }
bytes = "1" bytes = { workspace = true }
chrono = "0.4" chrono = { workspace = true }
derive_builder = "0.20" derive_builder = { workspace = true }
derive-getters = "0.5" derive-getters = { workspace = true }
either = { version = "1.13", features = ["serde"] } either = { workspace = true }
futures = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
validator = { workspace = true }
uuid = { workspace = true }
xxhash-rust = { workspace = true }
prometheus = { workspace = true }
thiserror = { workspace = true }
# Dependencies not yet in workspace
figment = { version = "0.10.19", features = ["env", "json", "toml", "test"] } figment = { version = "0.10.19", features = ["env", "json", "toml", "test"] }
futures = { version = "0.3" }
humantime = { version = "2.1.0" } humantime = { version = "2.1.0" }
log = { version = "0.4" } log = { version = "0.4" }
once_cell = "1" once_cell = { version = "1" }
prometheus = { version = "0.13" }
regex = { version = "1" } regex = { version = "1" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
socket2 = { version = "0.5.8" } socket2 = { version = "0.5.8" }
thiserror = { version = "1" }
tokio = { version = "1", features = ["full"] }
tokio-stream = { version = "0.1" }
tokio-util = { version = "0.7", features = ["codec", "net"] }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["env-filter", "local-time", "json"] } tracing-subscriber = { version = "0.3", features = ["env-filter", "local-time", "json"] }
uuid = { version = "1", features = ["v4", "serde"] }
validator = { version = "0.20", features = ["derive"] }
xxhash-rust = { version = "0.8", features = ["xxh3", "const_xxh3"] }
# non-workspace async-once-cell = { version = "0.5.4" }
async-once-cell = "0.5.4" educe = { version = "0.6.0" }
educe = "0.6.0" etcd-client = { version = "0.14" }
etcd-client = "0.14"
local-ip-address = { version = "0.6.3" } local-ip-address = { version = "0.6.3" }
nid = { version = "3.0.0", features = ["serde"] } nid = { version = "3.0.0", features = ["serde"] }
nix = { version = "0.29", features = ["signal"] } nix = { version = "0.29", features = ["signal"] }
...@@ -73,7 +72,7 @@ nuid = { version = "0.5" } ...@@ -73,7 +72,7 @@ nuid = { version = "0.5" }
rand = { version = "0.8"} rand = { version = "0.8"}
[dev-dependencies] [dev-dependencies]
assert_matches = "1.5.0" assert_matches = { version = "1.5.0" }
env_logger = "0.11" env_logger = { version = "0.11" }
rstest = "0.23.0" rstest = { version = "0.23.0" }
temp-env = "0.3.6" temp-env = { version = "0.3.6" }
...@@ -84,7 +84,7 @@ dependencies = [ ...@@ -84,7 +84,7 @@ dependencies = [
"serde_json", "serde_json",
"serde_nanos", "serde_nanos",
"serde_repr", "serde_repr",
"thiserror", "thiserror 1.0.69",
"time", "time",
"tokio", "tokio",
"tokio-rustls", "tokio-rustls",
...@@ -144,7 +144,7 @@ dependencies = [ ...@@ -144,7 +144,7 @@ dependencies = [
"mio 0.6.23", "mio 0.6.23",
"once_cell", "once_cell",
"slab", "slab",
"thiserror", "thiserror 1.0.69",
"zmq", "zmq",
] ]
...@@ -351,9 +351,8 @@ checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c" ...@@ -351,9 +351,8 @@ checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c"
dependencies = [ dependencies = [
"android-tzdata", "android-tzdata",
"iana-time-zone", "iana-time-zone",
"js-sys",
"num-traits", "num-traits",
"wasm-bindgen", "serde",
"windows-link", "windows-link",
] ]
...@@ -665,7 +664,7 @@ dependencies = [ ...@@ -665,7 +664,7 @@ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
"socket2", "socket2",
"thiserror", "thiserror 2.0.12",
"tokio", "tokio",
"tokio-stream", "tokio-stream",
"tokio-util", "tokio-util",
...@@ -1403,7 +1402,7 @@ checksum = "3669cf5561f8d27e8fc84cc15e58350e70f557d4d65f70e3154e54cd2f8e1782" ...@@ -1403,7 +1402,7 @@ checksum = "3669cf5561f8d27e8fc84cc15e58350e70f557d4d65f70e3154e54cd2f8e1782"
dependencies = [ dependencies = [
"libc", "libc",
"neli", "neli",
"thiserror", "thiserror 1.0.69",
"windows-sys 0.59.0", "windows-sys 0.59.0",
] ]
...@@ -1551,7 +1550,7 @@ checksum = "4abdf1789932b85dc39446e27f45a1064a30f9e19a2b872b1d09bd59283f85f3" ...@@ -1551,7 +1550,7 @@ checksum = "4abdf1789932b85dc39446e27f45a1064a30f9e19a2b872b1d09bd59283f85f3"
dependencies = [ dependencies = [
"rand", "rand",
"serde", "serde",
"thiserror", "thiserror 1.0.69",
] ]
[[package]] [[package]]
...@@ -1857,7 +1856,7 @@ dependencies = [ ...@@ -1857,7 +1856,7 @@ dependencies = [
"memchr", "memchr",
"parking_lot", "parking_lot",
"protobuf", "protobuf",
"thiserror", "thiserror 1.0.69",
] ]
[[package]] [[package]]
...@@ -2475,7 +2474,16 @@ version = "1.0.69" ...@@ -2475,7 +2474,16 @@ version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
dependencies = [ dependencies = [
"thiserror-impl", "thiserror-impl 1.0.69",
]
[[package]]
name = "thiserror"
version = "2.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
dependencies = [
"thiserror-impl 2.0.12",
] ]
[[package]] [[package]]
...@@ -2489,6 +2497,17 @@ dependencies = [ ...@@ -2489,6 +2497,17 @@ dependencies = [
"syn 2.0.100", "syn 2.0.100",
] ]
[[package]]
name = "thiserror-impl"
version = "2.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.100",
]
[[package]] [[package]]
name = "thread_local" name = "thread_local"
version = "1.1.8" version = "1.1.8"
......
...@@ -31,4 +31,4 @@ repository = "https://github.com/ai-dynamo/dynamo.git" ...@@ -31,4 +31,4 @@ repository = "https://github.com/ai-dynamo/dynamo.git"
[workspace.dependencies] [workspace.dependencies]
# local or crates.io # local or crates.io
dynamo-runtime = { path = "../" } dynamo-runtime = { path = "../" }
\ No newline at end of file
...@@ -29,4 +29,4 @@ dynamo-runtime = { workspace = true } ...@@ -29,4 +29,4 @@ dynamo-runtime = { workspace = true }
futures = "0.3" futures = "0.3"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" } serde_json = { version = "1" }
tokio = { version = "1", features = ["full"] } tokio = { version = "1", features = ["full"] }
\ No newline at end of file
[toolchain]
channel = "1.85.0"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment