# 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-std"
version = "0.20.0-pre.5"
authors = ["Dilshod Tadjibaev (@antimora)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and utilities shared across the Burn ecosystem."
documentation = "https://docs.rs/burn-std"
readme = "README.md"
keywords = []
categories = []
license = "MIT OR Apache-2.0"
repository = "https://github.com/tracel-ai/burn/tree/main/crates/burn-std"
resolver = "2"

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

[features]
cubecl = ["dep:cubecl"]
default = [
    "std",
    "cubecl-common/default",
]
doc = ["default"]
network = [
    "dep:indicatif",
    "dep:reqwest",
    "dep:tokio",
]
std = [
    "cubecl-common/std",
    "num-traits/std",
]

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

[dependencies.bytemuck]
version = "1.24.0"
features = ["extern_crate_alloc"]

[dependencies.cubecl]
version = "=0.9.0-pre.5"
optional = true
default-features = false

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

[dependencies.cubecl-quant]
version = "=0.9.0-pre.5"
default-features = false

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

[dependencies.indicatif]
version = "0.18.0"
optional = true

[dependencies.num-traits]
version = "0.2.19"
features = ["libm"]
default-features = false

[dependencies.reqwest]
version = "0.12.23"
features = ["rustls-tls"]
optional = true
default-features = false

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

[dependencies.tokio]
version = "1.47.1"
features = [
    "rt",
    "macros",
]
optional = true

[dev-dependencies.dashmap]
version = "6.1.0"

[lints.clippy]

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