# 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 = "singe-cutensor"
version = "0.1.0-alpha.7"
build = false
include = [
    "**/*.rs",
    "Cargo.toml",
    "dist",
    "README.md",
    "LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust wrappers for NVIDIA cuTENSOR library."
readme = "README.md"
keywords = [
    "cuda",
    "nvidia",
    "cutensor",
    "tensor",
]
license-file = "LICENSE"
repository = "https://github.com/tinrab/singe"

[package.metadata.docs.rs]
rustdoc-args = [
    "--html-in-header",
    "dist/katex_header.html",
]

[features]
cutensor_2_6 = [
    "singe-cuda/runtime_13_3",
    "singe-cutensor-sys/cutensor_2_6",
]
default = [
    "cutensor_2_6",
    "mg",
    "mp",
]
mg = ["singe-cutensor-sys/mg"]
mp = [
    "singe-cutensor-sys/mp",
    "singe-nccl",
]
testing = ["singe-cuda/testing"]

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

[[example]]
name = "blocksparse"
path = "examples/blocksparse.rs"

[[example]]
name = "contraction"
path = "examples/contraction.rs"

[[example]]
name = "contraction_jit"
path = "examples/contraction_jit.rs"

[[example]]
name = "contraction_plan_cache"
path = "examples/contraction_plan_cache.rs"

[[example]]
name = "contraction_trinary"
path = "examples/contraction_trinary.rs"

[[example]]
name = "cutensor_mp_contraction"
path = "examples/cutensor_mp_contraction.rs"

[[example]]
name = "einsum"
path = "examples/einsum.rs"

[[example]]
name = "elementwise_binary"
path = "examples/elementwise_binary.rs"

[[example]]
name = "elementwise_permute"
path = "examples/elementwise_permute.rs"

[[example]]
name = "elementwise_permute_padding"
path = "examples/elementwise_permute_padding.rs"

[[example]]
name = "elementwise_trinary"
path = "examples/elementwise_trinary.rs"

[[example]]
name = "mg_blog_post"
path = "examples/mg_blog_post.rs"

[[example]]
name = "mg_contraction_multi_gpu"
path = "examples/mg_contraction_multi_gpu.rs"

[[example]]
name = "reduction"
path = "examples/reduction.rs"

[dependencies.bitflags]
version = "2.13.0"

[dependencies.num_enum]
version = "0.7.6"

[dependencies.singe-core]
version = "0.1.0-alpha.7"

[dependencies.singe-cuda]
version = "0.1.0-alpha.9"

[dependencies.singe-cutensor-sys]
version = "0.1.0-alpha.7"

[dependencies.singe-nccl]
version = "0.1.0-alpha.8"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.rand]
version = "0.10.1"
