# 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.87"
name = "rlx-granite"
version = "0.2.5"
authors = [
    "Eugene Hauptmann",
    "Nataliya Kosmyna",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Granite (IBM) Llama-shaped runner — STUB (PLAN.md M4)"
readme = false
license = "GPL-3.0-only"
repository = "https://github.com/MIT-RLX/rlx-models"
resolver = "2"

[features]
all-backends = [
    "metal",
    "mlx",
    "cuda",
    "rocm",
    "gpu",
    "vulkan",
]
cuda = ["rlx-llama32/cuda"]
default = []
gpu = ["rlx-llama32/gpu"]
metal = ["rlx-llama32/metal"]
mlx = ["rlx-llama32/mlx"]
rocm = ["rlx-llama32/rocm"]
tokenizer = ["rlx-llama32/tokenizer"]
vulkan = ["rlx-llama32/vulkan"]

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

[dependencies.anyhow]
version = "1"

[dependencies.rlx-cli]
version = "0.2.5"

[dependencies.rlx-llama-base]
version = "0.2.5"

[dependencies.rlx-llama32]
version = "0.2.5"

[lints.clippy]
manual_range_contains = "allow"
needless_range_loop = "allow"
too_many_arguments = "allow"
upper_case_acronyms = "allow"

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

[lints.rust.unused]
level = "warn"
priority = 0
