[package]
edition = "2024"
rust-version = "1.85"
name = "binlayout"
version = "0.1.0"
build = false
include = [
"src/**",
"examples/**",
"tests/**",
"Cargo.toml",
"Cargo.lock",
"README.md",
"LICENSE",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Host-independent size, alignment, padding, and offset calculations for binary data models"
documentation = "https://docs.rs/binlayout"
readme = "README.md"
keywords = [
"binary",
"layout",
"alignment",
"abi",
"no-std",
]
categories = [
"data-structures",
"no-std",
]
license = "MPL-2.0"
repository = "https://github.com/LunaStev/binlayout"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["std"]
std = []
[lib]
name = "binlayout"
path = "src/lib.rs"
[[example]]
name = "elf"
path = "examples/elf.rs"
[[example]]
name = "header"
path = "examples/header.rs"
[[example]]
name = "protocol"
path = "examples/protocol.rs"
[[test]]
name = "elf"
path = "tests/elf.rs"
[[test]]
name = "invariants"
path = "tests/invariants.rs"
[[test]]
name = "layout"
path = "tests/layout.rs"
[[test]]
name = "structure"
path = "tests/structure.rs"
[[test]]
name = "target"
path = "tests/target.rs"
[[test]]
name = "union"
path = "tests/union.rs"
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"