# 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 = "tensorlogic-scirs-backend"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SciRS2-powered tensor execution backend for TensorLogic"
homepage = "https://github.com/cool-japan/tensorlogic"
documentation = "https://docs.rs/tensorlogic-scirs-backend"
readme = "README.md"
keywords = [
    "tensor",
    "logic",
    "scientific-computing",
    "numerical",
    "backend",
]
categories = [
    "science",
    "algorithms",
    "mathematics",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/tensorlogic"

[features]
cpu = []
default = ["cpu"]
gpu = []
integration-tests = []
parallel = ["scirs2-core/parallel"]
simd = [
    "cpu",
    "scirs2-core/simd",
    "scirs2-linalg/simd",
]
torsh = [
    "dep:torsh-core",
    "dep:torsh-tensor",
]

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "end_to_end"
path = "benches/end_to_end.rs"
harness = false

[[bench]]
name = "forward_pass"
path = "benches/forward_pass.rs"
harness = false

[[bench]]
name = "gradient_stability"
path = "benches/gradient_stability.rs"
harness = false

[[bench]]
name = "memory_footprint"
path = "benches/memory_footprint.rs"
harness = false

[[bench]]
name = "operation_benchmarks"
path = "benches/operation_benchmarks.rs"
harness = false

[[bench]]
name = "parallel_performance"
path = "benches/parallel_performance.rs"
harness = false

[[bench]]
name = "simd_comparison"
path = "benches/simd_comparison.rs"
harness = false

[[bench]]
name = "simd_specific"
path = "benches/simd_specific.rs"
harness = false

[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false

[[bench]]
name = "torsh_interop_benchmarks"
path = "benches/torsh_interop_benchmarks.rs"

[dependencies.anyhow]
version = "1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.scirs2-core]
version = "0.4.2"
features = ["random"]

[dependencies.scirs2-linalg]
version = "0.4.2"
features = ["tensor_contraction"]

[dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]

[dependencies.serde_json]
version = "1"

[dependencies.tensorlogic-infer]
version = "0.1.0"

[dependencies.tensorlogic-ir]
version = "0.1.0"

[dependencies.thiserror]
version = "2"

[dependencies.torsh-core]
version = "0.1.2"
optional = true

[dependencies.torsh-tensor]
version = "0.1.2"
optional = true

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tensorlogic-compiler]
version = "0.1.0"
