[package]
name = "khal-std"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "GPU standard library for khal compute shaders, with cross-platform primitives compiling to SPIR-V, CUDA PTX, and CPU targets."
repository = "https://github.com/dimforge/khal"
version = { workspace = true }
edition = "2024"
license = "MIT OR Apache-2.0"
[features]
cpu = ["corosensei"]
cpu-parallel = ["cpu", "rayon"]
cuda = []
unsafe_remove_boundchecks = []
[dependencies]
glamx = { version = "0.3", default-features = false, features = ["nostd-libm", "bytemuck", "u32", "i32", "f64"] }
rayon = { version = "1", optional = true }
corosensei = { version = "0.3", optional = true }
spirv-std-macros = "0.10.0-alpha.1"
khal-derive = { version = "0.2.0", path = "../khal-derive" }
[lints]
workspace = true
[target.'cfg(not(target_arch = "nvptx64"))'.dependencies]
spirv-std = "0.10.0-alpha.1"
[target.'cfg(target_arch = "nvptx64")'.dependencies]