open-standards/wai/wai-pack/Cargo.toml

43 lines
1.7 KiB
TOML

[package]
name = "wai-pack"
version = "0.1.0"
edition = "2024"
rust-version = "1.97"
license = "Apache-2.0"
description = "The reference packager of WAI's packaging extension: a declared policy and its digest, scene-cut segmentation with a bounded lookahead, piece classification, and the conformance corpus that pins them."
repository = "https://git.transaction.science/Transaction-Science/open-standards"
publish = false
# Its own workspace and Cargo.lock, like the other crates beside wai-rs.
[workspace]
[lib]
name = "wai_pack"
[[bin]]
name = "wai-pack"
path = "src/bin/wai_pack.rs"
[dependencies]
# The standard's crate: canonical JSON and the capability registry (ungated); the
# integer video encoder and decoder (video_int); the stage index and the package receipt
# (video_package); HTTP delivery's codecs union and floor (http); staged measurement's
# counted bytes and output digest (stage_measure); the measurement claim and its figure
# view (receipt_claims); and the model meter (energy_meter). No codec library is linked.
wai = { path = "../wai-rs", default-features = false, features = ["video_int", "video_package", "http", "stage_measure", "receipt_claims", "energy_meter"] }
ed25519-dalek = "2"
# TOML 1.0 (the 0.8 line; later lines read TOML 1.1, which a policy must not use).
toml = { version = "0.8", default-features = false, features = ["parse"] }
serde_json = "1"
blake3 = "1"
sha2 = "0.10"
# Release builds check integer overflow as debug builds do, so the release tests in CI
# catch a wrapped product (a field read as u16 and doubled) rather than run past it.
[profile.release]
overflow-checks = true
# R3 of the design: no float decides anything. The library and the CLI deny float
# arithmetic outright.
[lints.clippy]
float_arithmetic = "deny"