[package]
edition = "2024"
name = "modelc"
version = "0.1.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Compile model weight files to standalone executable binaries"
homepage = "https://github.com/yingkitw/modelc"
documentation = "https://docs.rs/modelc"
readme = "README.md"
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 = "model_test"
path = "tests/model_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"
[dependencies.anyhow]
version = "1"
[dependencies.byteorder]
version = "1"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.half]
version = "2"
[dependencies.onnx-rs]
version = "0.1.2"
[dependencies.safetensors]
version = "0.4"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tempfile]
version = "3"
[dependencies.zip]
version = "2"
features = ["deflate"]
default-features = false