[package]
edition = "2021"
rust-version = "1.75"
name = "himada-dispatch"
version = "0.1.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Adaptive SIMD dispatch for Himada — auto-selects fastest kernel at runtime"
readme = false
license = "MIT"
repository = "https://github.com/anomalyco/himada"
[features]
cli = []
cuda = []
default = []
ext-bench = [
"rayon",
"nalgebra",
"wide",
]
force-avx2 = []
force-neon = []
force-scalar = []
force-sse = []
half = ["dep:half"]
metal = [
"dep:metal",
"dep:objc",
]
sve = []
vulkan = [
"dep:ash",
"dep:naga",
"dep:bytemuck",
]
[lib]
name = "himada_dispatch"
crate-type = [
"cdylib",
"staticlib",
"lib",
]
path = "src/lib.rs"
[[bin]]
name = "himada-bench"
path = "src/main.rs"
required-features = ["cli"]
[[bench]]
name = "simd_bench"
path = "benches/simd_bench.rs"
harness = false
[dependencies.dirs]
version = "5"
[dependencies.half]
version = "2"
optional = true
[dependencies.himada-core]
version = "0.1"
[dependencies.himada-macros]
version = "0.1"
[dependencies.nalgebra]
version = "0.33"
optional = true
[dependencies.rayon]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = [
"derive",
"std",
]
[dependencies.serde_json]
version = "1"
[dependencies.wide]
version = "0.7"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ash]
version = "0.38"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.bytemuck]
version = "1"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.libc]
version = "0.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.naga]
version = "0.20"
features = [
"glsl-in",
"spv-out",
]
optional = true
[target.'cfg(target_os = "macos")'.dependencies.metal]
version = "0.28"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc]
version = "0.2"
optional = true