[package]
edition = "2024"
rust-version = "1.93"
name = "emelex"
version = "1.1.1"
build = "build.rs"
links = "mlxc"
include = [
"/src/**/*",
"/examples/**/*",
"/tests/**/*",
"/tools/*.py",
"/tools/*.sh",
"/docs/**/*",
"/vendor/**/*",
"/licenses/**/*",
"/build.rs",
"/Cargo.toml",
"/Cargo.lock",
"/rust-toolchain.toml",
"/README.md",
"/LICENSE",
"/ATTRIBUTION.md",
"/NOTICE.md",
"/deny.toml",
"/rustfmt.toml",
"/clippy.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Apple Silicon local inference toolkit powered by MLX"
documentation = "https://docs.rs/emelex"
readme = "README.md"
keywords = [
"mlx",
"llm",
"inference",
"apple-silicon",
"agent",
]
categories = [
"command-line-utilities",
"science",
]
license = "MIT"
[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = []
[features]
bench = ["rig"]
cli = [
"dep:anyhow",
"dep:clap",
"dep:dialoguer",
"dep:mime_guess",
"dep:rustyline",
"dep:syntect",
]
default = ["cli"]
rig = ["dep:rig-core"]
[lib]
name = "emelex"
path = "src/lib.rs"
[[bin]]
name = "emelex"
path = "src/bin/emelex/main.rs"
required-features = ["cli"]
[[example]]
name = "agent"
path = "examples/agent.rs"
required-features = ["rig"]
[[example]]
name = "chat"
path = "examples/chat.rs"
required-features = ["rig"]
[[example]]
name = "concurrent"
path = "examples/concurrent.rs"
required-features = ["rig"]
[[example]]
name = "extract"
path = "examples/extract.rs"
required-features = ["rig"]
[[example]]
name = "media"
path = "examples/media.rs"
[[example]]
name = "mtp_bench"
path = "examples/mtp_bench.rs"
required-features = ["bench"]
[[example]]
name = "multi_tool"
path = "examples/multi_tool.rs"
required-features = ["rig"]
[[example]]
name = "orchestration"
path = "examples/orchestration.rs"
required-features = ["rig"]
[[example]]
name = "rag"
path = "examples/rag.rs"
required-features = ["rig"]
[[example]]
name = "translate"
path = "examples/translate.rs"
[[example]]
name = "vision"
path = "examples/vision.rs"
required-features = ["rig"]
[[test]]
name = "extensible_api"
path = "tests/extensible_api.rs"
[[test]]
name = "live"
path = "tests/live.rs"
required-features = ["rig"]
[[test]]
name = "native_api"
path = "tests/native_api.rs"
[[test]]
name = "native_build_support"
path = "tests/native_build_support.rs"
[[test]]
name = "public_api"
path = "tests/public_api.rs"
required-features = ["rig"]
[[test]]
name = "runtime"
path = "tests/runtime.rs"
[dependencies.anyhow]
version = "1.0"
optional = true
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.clap]
version = "4.6"
features = [
"derive",
"color",
]
optional = true
[dependencies.dialoguer]
version = "0.12"
optional = true
[dependencies.futures]
version = "0.3"
[dependencies.half]
version = "2"
[dependencies.hex]
version = "0.4"
[dependencies.image]
version = "0.25"
features = [
"jpeg",
"png",
"webp",
]
default-features = false
[dependencies.libc]
version = "0.2"
[dependencies.mime_guess]
version = "2.0"
optional = true
[dependencies.minijinja]
version = "2"
features = [
"fuel",
"json",
"loader",
]
[dependencies.minijinja-contrib]
version = "2"
features = ["pycompat"]
[dependencies.once_cell]
version = "1.21"
[dependencies.rand]
version = "0.8"
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"query",
"stream",
]
[dependencies.rig-core]
version = "=0.40.0"
optional = true
[dependencies.rusqlite]
version = "0.37"
features = [
"bundled",
"chrono",
"uuid",
]
[dependencies.rustfft]
version = "6"
[dependencies.rustyline]
version = "18"
features = ["derive"]
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.11"
[dependencies.syntect]
version = "5.3"
features = ["default-fancy"]
optional = true
default-features = false
[dependencies.tempfile]
version = "3.23"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokenizers]
version = "0.22"
[dependencies.tokio]
version = "1.52"
features = ["full"]
[dependencies.toml]
version = "1.1.2"
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2.5"
[dependencies.uuid]
version = "1.19"
features = [
"serde",
"v7",
]
[dependencies.walkdir]
version = "2.5"
[dependencies.zstd]
version = "0.13"
[dev-dependencies.insta]
version = "1.43"
features = ["json"]
[dev-dependencies.tempfile]
version = "3.23"
[dev-dependencies.tokio]
version = "1.52"
features = [
"full",
"test-util",
]
[build-dependencies.bindgen]
version = "0.72"
[build-dependencies.cc]
version = "1.2"
[build-dependencies.cmake]
version = "0.1"
[build-dependencies.hex]
version = "0.4"
[build-dependencies.sha2]
version = "0.11"
[build-dependencies.zstd]
version = "0.13"
[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
expect_used = "deny"
future_not_send = "allow"
missing_errors_doc = "allow"
must_use_candidate = "allow"
needless_doctest_main = "allow"
panic = "deny"
redundant_closure_for_method_calls = "allow"
similar_names = "allow"
tabs_in_doc_comments = "allow"
unwrap_used = "deny"
wildcard_imports = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -2
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
future_incompatible = "deny"
missing_docs = "deny"
nonstandard_style = "deny"
unsafe_op_in_unsafe_fn = "deny"