[package]
edition = "2024"
rust-version = "1.89"
name = "rlx-bake"
version = "0.2.18"
authors = [
"Eugene Hauptmann",
"Nataliya Kosmyna",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Offline weight bake for RLX — specialize params, fold weight-only compute, emit a single *.rlx artifact"
documentation = "https://docs.rs/rlx"
readme = "README.md"
keywords = [
"ml",
"tensor",
"compiler",
"neural-network",
"autodiff",
]
categories = [
"science",
"algorithms",
"compilers",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MIT-RLX/rlx"
resolver = "2"
[package.metadata.docs.rs]
features = [
"encrypt",
"runtime",
"mmap",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
all-features = false
[features]
default = []
encrypt = [
"dep:chacha20poly1305",
"dep:argon2",
"dep:rand_core",
]
mmap = ["dep:memmap2"]
onnx = ["dep:rlx-onnx-import"]
runtime = ["dep:rlx-runtime"]
[lib]
name = "rlx_bake"
path = "src/lib.rs"
[[bin]]
name = "rlx-bake"
path = "src/bin/rlx-bake.rs"
[[example]]
name = "mnist_bench_rlxp"
path = "examples/mnist_bench_rlxp.rs"
required-features = ["runtime"]
[[example]]
name = "mnist_run_encrypted"
path = "examples/mnist_run_encrypted.rs"
required-features = [
"encrypt",
"runtime",
]
[[example]]
name = "mnist_train_bake"
path = "examples/mnist_train_bake.rs"
required-features = [
"encrypt",
"runtime",
]
[[test]]
name = "bake_roundtrip"
path = "tests/bake_roundtrip.rs"
[[test]]
name = "onnx_to_rlxp"
path = "tests/onnx_to_rlxp.rs"
required-features = ["onnx"]
[dependencies.anyhow]
version = "1"
[dependencies.argon2]
version = "0.5"
optional = true
[dependencies.bincode]
version = "1"
[dependencies.chacha20poly1305]
version = "0.10"
optional = true
[dependencies.half]
version = "2"
features = ["bytemuck"]
[dependencies.memmap2]
version = "0.9"
optional = true
[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]
optional = true
[dependencies.rlx-compile]
version = "0.2.18"
[dependencies.rlx-dduf]
version = "0.2.18"
[dependencies.rlx-fusion]
version = "0.2.18"
[dependencies.rlx-gguf]
version = "0.2.18"
[dependencies.rlx-ir]
version = "0.2.18"
features = ["serialize"]
[dependencies.rlx-mlx-io]
version = "0.2.18"
[dependencies.rlx-onnx-import]
version = "0.2.18"
optional = true
[dependencies.rlx-pkg]
version = "0.2.18"
[dependencies.rlx-runtime]
version = "0.2.18"
optional = true
default-features = true
[dependencies.safetensors]
version = "0.7"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dev-dependencies.rlx-runtime]
version = "0.2.18"
features = ["cpu"]
default-features = false
[dev-dependencies.tempfile]
version = "3"
[lints.cargo]
unused_dependencies = "allow"
unused_workspace_dependencies = "allow"
[lints.clippy]
collapsible_if = "allow"
doc_lazy_continuation = "allow"
doc_overindented_list_items = "allow"
large_enum_variant = "allow"
manual_range_contains = "allow"
missing_safety_doc = "allow"
needless_range_loop = "allow"
should_implement_trait = "allow"
single_range_in_vec_init = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
unnecessary_wraps = "allow"
upper_case_acronyms = "allow"
useless_conversion = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust.unused]
level = "warn"
priority = 0