# 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"
rust-version = "1.85"
name = "pmetal-py"
version = "0.3.4"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Python bindings for PMetal — high-performance LLM fine-tuning on Apple Silicon"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/epistates/pmetal"
resolver = "2"

[lib]
name = "pmetal"
crate-type = ["cdylib"]
path = "src/lib.rs"

[dependencies.mlx-rs]
version = "0.25.7"
features = ["safetensors"]
package = "pmetal-mlx-rs"

[dependencies.pmetal]
version = "0.3.0"
features = [
    "easy",
    "ane",
]

[dependencies.pmetal-core]
version = "0.3.2"
default-features = false

[dependencies.pmetal-data]
version = "0.3.2"

[dependencies.pmetal-hub]
version = "0.3.2"

[dependencies.pmetal-lora]
version = "0.3.2"

[dependencies.pmetal-mlx]
version = "0.3.2"

[dependencies.pmetal-models]
version = "0.3.2"

[dependencies.pmetal-trainer]
version = "0.3.2"

[dependencies.pyo3]
version = "0.28"
features = [
    "extension-module",
    "abi3-py311",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.tokio]
version = "1.50"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[build-dependencies.pyo3-build-config]
version = "0.28"

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]
