# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "cubecl-attention"
version = "0.9.0-pre.4"
authors = ["louisfd <louisfd94@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CubeCL Attention Kernels Engine"
readme = "README.md"
keywords = []
categories = [
    "science",
    "mathematics",
    "algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tracel-ai/cubecl/tree/main/crates/cubecl-attention"
resolver = "2"

[features]
attention_tests_all = [
    "attention_tests_f16",
    "attention_tests_f32",
    "attention_tests_unit",
    "attention_tests_blackbox_accelerated",
]
attention_tests_blackbox_accelerated = []
attention_tests_f16 = []
attention_tests_f32 = []
attention_tests_unit = []
default = [
    "std",
    "cubecl-runtime/default",
    "cubecl-core/default",
]
export_tests = ["pretty_assertions"]
std = [
    "cubecl-runtime/std",
    "cubecl-core/std",
]

[lib]
name = "cubecl_attention"
path = "src/lib.rs"

[dependencies.bytemuck]
version = "1.16.1"

[dependencies.cubecl-common]
version = "=0.9.0-pre.4"
default-features = false

[dependencies.cubecl-core]
version = "=0.9.0-pre.4"
default-features = false

[dependencies.cubecl-matmul]
version = "=0.9.0-pre.4"
default-features = false

[dependencies.cubecl-random]
version = "=0.9.0-pre.4"
default-features = false

[dependencies.cubecl-runtime]
version = "=0.9.0-pre.4"
default-features = false

[dependencies.cubecl-std]
version = "=0.9.0-pre.4"
default-features = false

[dependencies.half]
version = "2.5"
features = [
    "alloc",
    "num-traits",
    "serde",
    "bytemuck",
]
default-features = false

[dependencies.pretty_assertions]
version = "1.4"
optional = true

[dependencies.serde]
version = "1.0.204"
features = [
    "derive",
    "alloc",
]
default-features = false

[dev-dependencies.trybuild]
version = "1"
