# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "dynamo-memory"
version = "1.2.1"
authors = ["NVIDIA Inc. <sw-dl-dynamo@nvidia.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Memory management library for Dynamo"
readme = false
license = "Apache-2.0"
repository = "https://github.com/ai-dynamo/dynamo.git"

[features]
default = []
testing-all = [
    "testing-cuda",
    "testing-nixl",
]
testing-cuda = []
testing-nixl = []
unsafe-slices = []

[lib]
name = "dynamo_memory"
path = "src/lib.rs"

[[bin]]
name = "validate_numa_placement"
path = "bin/validate_numa_placement.rs"

[dependencies.anyhow]
version = "1"

[dependencies.cudarc]
version = "=0.19.3"
features = [
    "cuda-version-from-build-system",
    "fallback-latest",
]

[dependencies.libc]
version = "0.2"

[dependencies.libloading]
version = "0.8"

[dependencies.nix]
version = "0.30"
features = ["fs"]

[dependencies.nixl-sys]
version = "=0.10.1"

[dependencies.offset-allocator]
version = "0.2"

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3"
