tensor-wasm-mem 0.3.8

CUDA Unified Memory allocator and Wasmtime `MemoryCreator` integration.
Documentation
# 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 = "2021"
rust-version = "1.78"
name = "tensor-wasm-mem"
version = "0.3.8"
authors = ["Craton Software Company <security@craton.com.ar>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CUDA Unified Memory allocator and Wasmtime `MemoryCreator` integration."
homepage = "https://github.com/craton-co/craton-tensor-wasm"
documentation = "https://docs.rs/tensor-wasm-mem"
readme = "README.md"
keywords = [
    "wasm",
    "cuda",
    "memory",
    "wasmtime",
    "gpu",
]
categories = [
    "memory-management",
    "wasm",
]
license = "Apache-2.0"
repository = "https://github.com/craton-co/craton-tensor-wasm"

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

[features]
cuda-oxide-backend = []
cudarc-backend = ["dep:cudarc"]
default = []
gpu-mem-pool = ["cudarc-backend"]
mock-cuda = []
unified-memory = ["dep:cust"]

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

[[test]]
name = "creator_behaviors"
path = "tests/creator_behaviors.rs"

[[test]]
name = "cuda_drop_failure_observability"
path = "tests/cuda_drop_failure_observability.rs"

[[test]]
name = "cuda_mem_pool_driver_pin"
path = "tests/cuda_mem_pool_driver_pin.rs"

[[test]]
name = "cuda_mem_pool_scaffold"
path = "tests/cuda_mem_pool_scaffold.rs"

[[test]]
name = "cuda_oxide_smoke"
path = "tests/cuda_oxide_smoke.rs"

[[test]]
name = "cuda_oxide_snapshot_conformance"
path = "tests/cuda_oxide_snapshot_conformance.rs"

[[test]]
name = "cudarc_smoke"
path = "tests/cudarc_smoke.rs"

[[test]]
name = "cudarc_snapshot_conformance"
path = "tests/cudarc_snapshot_conformance.rs"

[[test]]
name = "cudarc_unified_buffer_smoke"
path = "tests/cudarc_unified_buffer_smoke.rs"

[[test]]
name = "cudarc_visible_window_only"
path = "tests/cudarc_visible_window_only.rs"

[[test]]
name = "cust_snapshot_conformance"
path = "tests/cust_snapshot_conformance.rs"

[[test]]
name = "isolation"
path = "tests/isolation.rs"

[[test]]
name = "memory_roundtrip"
path = "tests/memory_roundtrip.rs"

[[test]]
name = "mock_cuda_branches"
path = "tests/mock_cuda_branches.rs"
required-features = ["mock-cuda"]

[[test]]
name = "pool_teardown_contract"
path = "tests/pool_teardown_contract.rs"

[[test]]
name = "round_trip"
path = "tests/round_trip.rs"

[[test]]
name = "unified_backing_trait"
path = "tests/unified_backing_trait.rs"

[dependencies.anyhow]
version = "1"

[dependencies.cudarc]
version = "0.13"
features = [
    "driver",
    "cuda-12000",
]
optional = true
default-features = false

[dependencies.cust]
version = "0.3"
features = ["bytemuck"]
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.region]
version = "3"

[dependencies.tensor-wasm-core]
version = "0.3.8"

[dependencies.tensor-wasm-tenant]
version = "0.3.8"

[dependencies.thiserror]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.wasmtime]
version = "45"
features = [
    "async",
    "cranelift",
    "component-model",
    "runtime",
]
default-features = false

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

[dev-dependencies.tensor-wasm-snapshot]
version = "0.3.8"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
    "fmt",
]

[dev-dependencies.wasmtime]
version = "45"
features = [
    "async",
    "cranelift",
    "component-model",
    "runtime",
]
default-features = false

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