# 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"
rust-version = "1.70"
name = "tenflowers"
version = "0.1.2"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust implementation of TensorFlow - A comprehensive deep learning framework"
homepage = "https://github.com/cool-japan/tenflowers"
documentation = "https://docs.rs/tenflowers"
readme = "README.md"
keywords = [
    "machine-learning",
    "neural-network",
    "tensor",
    "autograd",
    "gpu",
]
categories = [
    "science",
    "mathematics",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/tenflowers"

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

[features]
autograd = ["tenflowers-core/autograd"]
benchmark = ["tenflowers-core/benchmark"]
blas = ["tenflowers-core/blas"]
blas-accelerate = ["tenflowers-core/blas-accelerate"]
blas-mkl = ["tenflowers-core/blas-mkl"]
blas-openblas = ["tenflowers-core/blas-openblas"]
blas-oxiblas = ["tenflowers-core/blas-oxiblas"]
compression = ["tenflowers-core/compression"]
cuda = ["tenflowers-core/cuda"]
cudnn = ["tenflowers-core/cudnn"]
default = [
    "std",
    "parallel",
]
experimental = []
full = [
    "gpu",
    "blas-oxiblas",
    "simd",
    "serialize",
    "compression",
    "onnx",
    "autograd",
]
gpu = ["tenflowers-core/gpu"]
metal = ["tenflowers-core/metal"]
minimal = ["std"]
nccl = ["tenflowers-core/nccl"]
onnx = [
    "tenflowers-core/onnx",
    "tenflowers-neural/onnx",
]
opencl = ["tenflowers-core/opencl"]
parallel = ["tenflowers-core/parallel"]
rocm = ["tenflowers-core/rocm"]
serialize = ["tenflowers-core/serialize"]
simd = ["tenflowers-core/simd"]
standard = [
    "std",
    "parallel",
]
std = ["tenflowers-core/std"]
wasm = ["tenflowers-core/wasm"]

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

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

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

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

[[test]]
name = "feature_flags_comprehensive"
path = "tests/feature_flags_comprehensive.rs"

[[test]]
name = "feature_flags_test"
path = "tests/feature_flags_test.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "ml_compat"
path = "tests/ml_compat.rs"

[[test]]
name = "prelude_surface"
path = "tests/prelude_surface.rs"

[[test]]
name = "tensor_macro"
path = "tests/tensor_macro.rs"

[[test]]
name = "type_aliases"
path = "tests/type_aliases.rs"

[dependencies.bytemuck]
version = "1.25"
features = ["derive"]

[dependencies.scirs2-core]
version = "0.6.0"

[dependencies.tenflowers-autograd]
version = "0.1.2"

[dependencies.tenflowers-core]
version = "0.1.2"

[dependencies.tenflowers-dataset]
version = "0.1.2"

[dependencies.tenflowers-neural]
version = "0.1.2"

[dependencies.thiserror]
version = "2.0"

[lints.clippy]
clone_on_copy = "allow"
empty_line_after_doc_comments = "allow"
inefficient_to_string = "warn"
large_enum_variant = "warn"
len_zero = "allow"
module_inception = "allow"
needless_pass_by_value = "allow"
new_without_default = "allow"
redundant_field_names = "allow"
redundant_static_lifetimes = "allow"
too_many_arguments = "allow"
unwrap_or_default = "allow"

[lints.rust]
dead_code = "allow"
unused_doc_comments = "allow"
unused_imports = "allow"
unused_mut = "allow"
unused_variables = "allow"
