# 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 = "burn-candle"
version = "0.20.0"
authors = ["louisfd <louisfd94@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Candle backend for the Burn framework"
documentation = "https://docs.rs/burn-candle"
readme = "README.md"
keywords = [
    "deep-learning",
    "machine-learning",
    "data",
]
categories = ["science"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tracel-ai/burn/tree/main/crates/burn-candle"
resolver = "2"

[package.metadata.docs.rs]
features = ["doc"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
accelerate = ["candle-core/accelerate"]
cuda = ["candle-core/cuda"]
default = ["std"]
doc = ["default"]
metal = ["candle-core/metal"]
std = []
tracing = [
    "burn-backend/tracing",
    "burn-std/tracing",
]

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

[dependencies.burn-backend]
version = "=0.20.0"
default-features = false

[dependencies.burn-std]
version = "=0.20.0"
default-features = false

[dependencies.candle-core]
version = "0.9.1"

[dependencies.derive-new]
version = "0.7.0"
default-features = false

[dev-dependencies.burn-tch]
version = "=0.20.0"
features = []
default-features = false

[lints.clippy]

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"
