Files
leleka/crates/model-format/Cargo.toml
T

28 lines
906 B
TOML

[package]
name = "leleka-model-format"
version = "0.1.0"
description = "Bounded native GGUF metadata and tensor indexing for Leleka"
edition.workspace = true
license.workspace = true
rust-version.workspace = true
autotests = false
[dependencies]
sha2 = "0.11"
[target.'cfg(target_os = "linux")'.dependencies]
rustix = { version = "=1.1.5", features = ["mm", "param", "fs"] }
# Windows: read-only file views (CreateFileMapping/MapViewOfFile) and the available-memory figure.
[target.'cfg(windows)'.dependencies]
leleka-libc-shim = { path = "../libc-shim" }
# The workspace forbids unsafe code; this crate denies it instead so that exactly one owner, the read-only
# shared mapping of a verified GGUF tensor (gguf_resident.rs `FileSpan`, the low-RAM expert source), can
# `#[allow]` its mmap/munmap/slice. Everything else stays unsafe-free.
[lints.rust]
unsafe_code = "deny"
[lints.clippy]
all = "warn"