[package]
edition = "2021"
rust-version = "1.91"
name = "apr-format"
version = "0.64.0"
authors = ["PAIML Engineering"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = 'Sovereign `.apr` model container format (read + write, v1 APRN + v2 APR\0) — zero ML/GPU/tokenizer dependencies'
readme = "README.md"
keywords = [
"apr",
"model-format",
"serialization",
"machine-learning",
"container",
]
categories = [
"science",
"encoding",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/paiml/aprender"
[features]
compression = [
"dep:lz4_flex",
"dep:zstd",
]
default = []
encryption = []
full = [
"mmap",
"compression",
]
mmap = ["dep:memmap2"]
signing = []
[lib]
name = "apr_format"
path = "src/lib.rs"
[[test]]
name = "golden_fixtures"
path = "tests/golden_fixtures.rs"
[dependencies.bincode]
version = "=1.3"
[dependencies.half]
version = "2.4"
features = ["std"]
default-features = false
[dependencies.lz4_flex]
version = "0.11"
optional = true
[dependencies.memmap2]
version = "0.9"
optional = true
[dependencies.rmp-serde]
version = "1"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
features = ["std"]
default-features = false
[dependencies.tempfile]
version = "3.14"
[dependencies.thiserror]
version = "2"
[dependencies.zstd]
version = "0.13"
optional = true
[dev-dependencies.cargo_metadata]
version = "0.19"
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
expect_used = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "warn"
similar_names = "allow"
uninlined_format_args = "allow"
unreachable = "warn"
unwrap_used = "warn"
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
rust_2018_idioms = "warn"
unsafe_op_in_unsafe_fn = "warn"