# 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 = "2021"
name = "ct2rs-platform"
version = "0.9.18"
authors = ["Junpei Kawamoto <kawamoto.junpei@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Platform-specific default feature sets for ct2rs"
documentation = "https://docs.rs/ct2rs"
readme = "README.md"
keywords = [
    "ctranslate2",
    "bindings",
    "llm",
    "whisper",
]
categories = ["api-bindings"]
license = "MIT"
repository = "https://github.com/jkawamoto/ctranslate2-rs"

[features]
accelerate = ["ct2rs/accelerate"]
all-tokenizers = [
    "sentencepiece",
    "tokenizers",
]
cuda = ["ct2rs/cuda"]
cuda-dynamic-loading = ["ct2rs/cuda-dynamic-loading"]
cuda-small-binary = ["ct2rs/cuda-small-binary"]
cudnn = ["ct2rs/cudnn"]
default = [
    "all-tokenizers",
    "cuda-small-binary",
]
disable-cpu-dispatch = ["ct2rs/disable-cpu-dispatch"]
dnnl = ["ct2rs/dnnl"]
flash-attention = ["ct2rs/flash-attention"]
hub = ["ct2rs/hub"]
mkl = ["ct2rs/mkl"]
openblas = ["ct2rs/openblas"]
openmp-runtime-comp = ["ct2rs/openmp-runtime-comp"]
openmp-runtime-intel = ["ct2rs/openmp-runtime-intel"]
ruy = ["ct2rs/ruy"]
sentencepiece = ["ct2rs/sentencepiece"]
system = ["ct2rs/system"]
system-mkl = ["ct2rs/system-mkl"]
tensor-parallel = ["ct2rs/tensor-parallel"]
tokenizers = ["ct2rs/tokenizers"]
whisper = ["ct2rs/whisper"]

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

[target.'cfg(all(target_os = "linux", not(target_arch = "aarch64")))'.dependencies.ct2rs]
version = "=0.9.18"
features = [
    "dnnl",
    "openmp-runtime-comp",
    "cuda",
    "cudnn",
    "cuda-dynamic-loading",
    "mkl",
    "tensor-parallel",
]
default-features = false

[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies.ct2rs]
version = "=0.9.18"
features = [
    "openmp-runtime-comp",
    "openblas",
    "ruy",
]
default-features = false

[target.'cfg(all(target_os = "macos", not(target_arch = "aarch64")))'.dependencies.ct2rs]
version = "=0.9.18"
features = [
    "dnnl",
    "mkl",
]
default-features = false

[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies.ct2rs]
version = "=0.9.18"
features = [
    "accelerate",
    "ruy",
]
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.ct2rs]
version = "=0.9.18"
features = [
    "openmp-runtime-intel",
    "dnnl",
    "cuda",
    "cudnn",
    "cuda-dynamic-loading",
    "mkl",
]
default-features = false
