[package]
edition = "2024"
name = "khal-std"
version = "0.2.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GPU standard library for khal compute shaders, with cross-platform primitives compiling to SPIR-V, CUDA PTX, and CPU targets."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/dimforge/khal"
resolver = "2"
[features]
cpu = ["corosensei"]
cpu-parallel = [
"cpu",
"rayon",
]
cuda = []
unsafe_remove_boundchecks = []
[lib]
name = "khal_std"
path = "src/lib.rs"
[dependencies.corosensei]
version = "0.3"
optional = true
[dependencies.glamx]
version = "0.3"
features = [
"nostd-libm",
"bytemuck",
"u32",
"i32",
"f64",
]
default-features = false
[dependencies.khal-derive]
version = "0.2.0"
[dependencies.rayon]
version = "1"
optional = true
[dependencies.spirv-std-macros]
version = "0.10.0-alpha.1"
[target.'cfg(not(target_arch = "nvptx64"))'.dependencies.spirv-std]
version = "0.10.0-alpha.1"
[target.'cfg(target_arch = "nvptx64")'.dependencies]
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
'cfg(feature, values("dim2", "dim3"))',
'cfg(target_arch, values("spirv"))',
]