rust-ai-core 0.2.7

Shared core utilities for the rust-ai ecosystem: device selection, errors, traits, and CubeCL interop
Documentation
# 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.92"
name = "rust-ai-core"
version = "0.2.7"
authors = ["Tyler Zervas <tz-dev@vectorweight.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared core utilities for the rust-ai ecosystem: device selection, errors, traits, and CubeCL interop"
homepage = "https://github.com/tzervas/rust-ai-core"
documentation = "https://docs.rs/rust-ai-core"
readme = "README.md"
keywords = [
    "machine-learning",
    "cuda",
    "gpu",
    "tensors",
    "deep-learning",
]
categories = [
    "science",
    "mathematics",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/tzervas/rust-ai-core"

[features]
cuda = [
    "candle-core/cuda",
    "dep:cubecl",
    "dep:cubecl-cuda",
]
default = []
python = [
    "dep:pyo3",
    "dep:numpy",
]

[lib]
name = "rust_ai_core"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

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

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

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

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

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

[dependencies.candle-core]
version = "0.9"
default-features = false

[dependencies.cubecl]
version = "0.9"
optional = true

[dependencies.cubecl-cuda]
version = "0.9"
optional = true

[dependencies.half]
version = "2.7"

[dependencies.numpy]
version = "0.27"
optional = true

[dependencies.pyo3]
version = "0.27"
features = [
    "extension-module",
    "generate-import-lib",
]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

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

[dev-dependencies.tokio]
version = "1.49"
features = ["full"]

[lints.clippy]
pedantic = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"