[package]
edition = "2024"
rust-version = "1.85"
name = "pack-io"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Compact binary wire format with schema evolution and zero-copy deserialization for Rust. The serialization substrate under network-protocol and Hive DB."
homepage = "https://github.com/jamesgober/pack-io"
documentation = "https://docs.rs/pack-io"
readme = "README.md"
keywords = [
"serialization",
"codec",
"binary",
"schema-evolution",
"zero-copy",
]
categories = [
"encoding",
"data-structures",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/pack-io"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
derive = ["dep:pack-io-derive"]
schema = ["derive"]
serde = ["dep:serde"]
std = []
[lib]
name = "pack_io"
path = "src/lib.rs"
[[example]]
name = "basic_roundtrip"
path = "examples/basic_roundtrip.rs"
[[example]]
name = "collections_tour"
path = "examples/collections_tour.rs"
[[example]]
name = "derive_intro"
path = "examples/derive_intro.rs"
required-features = ["derive"]
[[example]]
name = "event_log"
path = "examples/event_log.rs"
required-features = ["derive"]
[[example]]
name = "primitive_tour"
path = "examples/primitive_tour.rs"
[[example]]
name = "protocol_handshake"
path = "examples/protocol_handshake.rs"
required-features = ["schema"]
[[example]]
name = "reuse_buffer"
path = "examples/reuse_buffer.rs"
[[example]]
name = "schema_evolution"
path = "examples/schema_evolution.rs"
required-features = ["schema"]
[[example]]
name = "streaming_io"
path = "examples/streaming_io.rs"
[[example]]
name = "view_zero_copy"
path = "examples/view_zero_copy.rs"
required-features = ["derive"]
[[test]]
name = "adversarial"
path = "tests/adversarial.rs"
[[test]]
name = "byte_equivalence"
path = "tests/byte_equivalence.rs"
[[test]]
name = "collections"
path = "tests/collections.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
required-features = ["derive"]
[[test]]
name = "determinism"
path = "tests/determinism.rs"
[[test]]
name = "hostile_inputs"
path = "tests/hostile_inputs.rs"
[[test]]
name = "integration_scenarios"
path = "tests/integration_scenarios.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "schema_evolution"
path = "tests/schema_evolution.rs"
required-features = ["schema"]
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[[bench]]
name = "codec_bench"
path = "benches/codec_bench.rs"
harness = false
required-features = ["derive"]
[[bench]]
name = "comparative"
path = "benches/comparative.rs"
harness = false
required-features = ["derive"]
[dependencies.pack-io-derive]
version = "=1.0.0"
optional = true
[dependencies.serde]
version = "1"
optional = true
default-features = false
[dev-dependencies.bincode]
version = "2"
features = ["serde"]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.postcard]
version = "1"
features = [
"alloc",
"use-std",
]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.rkyv]
version = "0.8"
features = [
"alloc",
"bytecheck",
]
default-features = false
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"