[package]
edition = "2024"
name = "modelc"
version = "0.1.8"
authors = ["Ying Kit WONG"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust CLI that compiles LLM weights (GGUF, Safetensors, ONNX, PyTorch) into a single .modelc artifact and serves a local OpenAI-compatible inference API with Metal GPU and CPU SIMD acceleration."
homepage = "https://github.com/yingkitw/modelc"
documentation = "https://docs.rs/modelc"
readme = "README.md"
keywords = [
"llm",
"inference",
"openai",
"gguf",
"transformer",
]
categories = [
"command-line-utilities",
"science",
"parser-implementations",
"compilers",
"web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/yingkitw/modelc"
[lib]
name = "modelc"
path = "src/lib.rs"
[[bin]]
name = "modelc"
path = "src/bin/modelc.rs"
[[example]]
name = "create_simple_model"
path = "examples/create_simple_model.rs"
[[example]]
name = "inspect_model"
path = "examples/inspect_model.rs"
[[example]]
name = "parse_weights"
path = "examples/parse_weights.rs"
[[example]]
name = "runtime_inference"
path = "examples/runtime_inference.rs"
[[test]]
name = "cli_test"
path = "tests/cli_test.rs"
[[test]]
name = "codegen_test"
path = "tests/codegen_test.rs"
[[test]]
name = "compiler_e2e_test"
path = "tests/compiler_e2e_test.rs"
[[test]]
name = "compiler_inspect_smoke_test"
path = "tests/compiler_inspect_smoke_test.rs"
[[test]]
name = "containerize_test"
path = "tests/containerize_test.rs"
[[test]]
name = "kv_cache_integration_test"
path = "tests/kv_cache_integration_test.rs"
[[test]]
name = "kv_error_test"
path = "tests/kv_error_test.rs"
[[test]]
name = "kv_stress_test"
path = "tests/kv_stress_test.rs"
[[test]]
name = "lora_test"
path = "tests/lora_test.rs"
[[test]]
name = "model_test"
path = "tests/model_test.rs"
[[test]]
name = "onnx_exec_test"
path = "tests/onnx_exec_test.rs"
[[test]]
name = "prefix_cache_test"
path = "tests/prefix_cache_test.rs"
[[test]]
name = "pytorch_zip_parser_test"
path = "tests/pytorch_zip_parser_test.rs"
[[test]]
name = "runtime_ops_test"
path = "tests/runtime_ops_test.rs"
[[test]]
name = "runtime_serve_test"
path = "tests/runtime_serve_test.rs"
[[test]]
name = "runtime_tensor_test"
path = "tests/runtime_tensor_test.rs"
[[test]]
name = "safetensors_parser_test"
path = "tests/safetensors_parser_test.rs"
[[test]]
name = "store_test"
path = "tests/store_test.rs"
[[test]]
name = "transformer_runtime_test"
path = "tests/transformer_runtime_test.rs"
[dependencies.anyhow]
version = "1"
[dependencies.axum]
version = "0.8"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.dirs]
version = "6"
[dependencies.half]
version = "2"
[dependencies.onnx-rs]
version = "0.1.2"
[dependencies.rayon]
version = "1"
[dependencies.regex]
version = "1"
[dependencies.safetensors]
version = "0.4"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"signal",
"sync",
]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.toml]
version = "0.8"
[dependencies.zip]
version = "2"
features = ["deflate"]
default-features = false
[dependencies.zstd]
version = "0.13"
[target.'cfg(target_os = "macos")'.dependencies.metal]
version = "0.29"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = "symbols"