hmll 0.1.0-rc.1

Safe, idiomatic Rust bindings to the hmll library for high-performance ML model loading
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.70"
name = "hmll"
version = "0.1.0-rc.1"
authors = [
    "Morgan Funtowicz <morgan@huggingface.co>",
    "Luc Georges <luc@huggingface.co>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe, idiomatic Rust bindings to the hmll library for high-performance ML model loading"
homepage = "https://github.com/huggingface/hmll"
documentation = "https://docs.rs/hmll"
readme = "README.md"
keywords = [
    "ml",
    "machine-learning",
    "huggingface",
    "model-loading",
    "safetensors",
]
categories = [
    "science",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/huggingface/hmll"

[features]
cuda = ["hmll-sys/cuda"]
default = [
    "vendored",
    "io_uring",
]
io_uring = ["hmll-sys/io_uring"]
safetensors = ["hmll-sys/safetensors"]
vendored = ["hmll-sys/vendored"]

[lib]
name = "hmll"
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "multi_files"
path = "examples/multi_files.rs"

[[test]]
name = "safetensors"
path = "tests/safetensors.rs"

[dependencies.hmll-sys]
version = "0.1.0-rc.1"
default-features = false

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
inherits = "release"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true