[[bench]]
harness = false
name = "gpu_operations"
path = "benches/gpu_operations.rs"
required-features = ["metal-native"]
[dependencies.bytemuck]
features = ["derive"]
version = "1.14"
[dependencies.half]
features = ["serde"]
version = "1.8"
[dependencies.log]
version = "0.4"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
features = ["full"]
version = "1.40"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.5"
[dev-dependencies.tempfile]
version = "3.8"
[dev-dependencies.tokio]
features = ["full"]
version = "1.40"
[[example]]
name = "cuda_basic"
path = "examples/cuda_basic.rs"
required-features = ["cuda"]
[[example]]
name = "metal_basic"
path = "examples/metal_basic.rs"
required-features = ["metal-native"]
[features]
cuda = []
default = ["metal-native"]
metal-native = ["metal", "objc"]
[lib]
name = "hive_gpu"
path = "src/lib.rs"
[package]
authors = ["HiveLLM Contributors"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["hardware-support", "algorithms"]
description = "High-performance GPU acceleration for vector operations with Device Info API (Metal, CUDA, ROCm)"
documentation = "https://docs.rs/hive-gpu"
edition = "2024"
homepage = "https://github.com/hivellm/hive-gpu"
keywords = ["gpu", "vector-search", "hnsw", "metal", "cuda"]
license = "MIT"
name = "hive-gpu"
readme = "README.md"
repository = "https://github.com/hivellm/hive-gpu"
version = "0.1.7"
[target.'cfg(target_os = "macos")'.dependencies.metal]
optional = true
version = "0.27"
[target.'cfg(target_os = "macos")'.dependencies.objc]
optional = true
version = "0.2"
[[test]]
name = "device_info_tests"
path = "tests/device_info_tests.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"