[package]
edition = "2024"
rust-version = "1.89"
name = "cartan-gpu"
version = "0.9.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Portable GPU compute primitives for the cartan ecosystem: wgpu device/buffer/kernel abstractions. FFT lives in the standalone gpufft crate (re-exported via the `fft` feature)."
homepage = "https://cartan.sotofranco.dev"
documentation = "https://docs.rs/cartan-gpu"
readme = "README.md"
keywords = [
"gpu",
"wgpu",
"compute",
"fft",
]
categories = [
"science",
"graphics",
]
license = "MIT"
repository = "https://github.com/alejandro-soto-franco/cartan"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
cuda = [
"fft",
"gpufft/cuda",
]
default = []
fft = ["dep:gpufft"]
shared = [
"vulkan",
"cuda",
"gpufft/shared",
]
vulkan = [
"fft",
"gpufft/vulkan",
]
[lib]
name = "cartan_gpu"
path = "src/lib.rs"
[[test]]
name = "buffer_roundtrip"
path = "tests/buffer_roundtrip.rs"
[[test]]
name = "device_smoke"
path = "tests/device_smoke.rs"
[[test]]
name = "hello_shader"
path = "tests/hello_shader.rs"
[dependencies.bytemuck]
version = "1"
features = ["derive"]
[dependencies.gpufft]
version = "0.1.3"
optional = true
default-features = false
[dependencies.log]
version = "0.4"
[dependencies.pollster]
version = "0.4"
[dependencies.thiserror]
version = "2"
features = ["std"]
default-features = false
[dependencies.wgpu]
version = "29"
features = [
"vulkan",
"wgsl",
]
default-features = false
[dev-dependencies.approx]
version = "0.5"
features = ["std"]
default-features = false
[dev-dependencies.env_logger]
version = "0.11"