# 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-models-core"
version = "0.2.6"
authors = [
    "Eugene Hauptmann",
    "Nataliya Kosmyna",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared config, weight loading, and compile helpers for RLX model crates"
homepage = "https://github.com/MIT-RLX/rlx-models"
documentation = "https://docs.rs/rlx-models"
readme = "README.md"
license = "GPL-3.0-only"
repository = "https://github.com/MIT-RLX/rlx-models"
resolver = "2"

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

[dependencies.anyhow]
version = "1"

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

[dependencies.half]
version = "2"
features = ["bytemuck"]

[dependencies.memmap2]
version = "0.9"

[dependencies.rayon]
version = "1.10"

[dependencies.rlx-flow]
version = "=0.2.6"

[dependencies.rlx-gguf]
version = "=0.2.6"

[dependencies.rlx-ir]
version = "=0.2.6"

[dependencies.rlx-opt]
version = "=0.2.6"

[dependencies.rlx-runtime]
version = "=0.2.6"
features = ["cpu"]
default-features = false

[dependencies.safetensors]
version = "0.7"

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

[dependencies.serde_json]
version = "1"

[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
