puns 0.1.5

Type punning proven at compile time: a safe alternative to transmute and to hand-written parsing of bytes
Documentation
# 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 = "2024"
rust-version = "1.99"
name = "puns"
version = "0.1.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type punning proven at compile time: a safe alternative to transmute and to hand-written parsing of bytes"
documentation = "https://docs.rs/puns"
readme = "README.md"
keywords = [
    "transmute",
    "zero-copy",
    "parsing",
    "bytes",
    "no-std",
]
categories = [
    "encoding",
    "parsing",
    "no-std",
    "rust-patterns",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/uael/puns"

[features]
verdict = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "checks"
path = "benches/checks.rs"
harness = false

[dependencies.puns-derive]
version = "=0.1.5"

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

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
cast_possible_truncation = "allow"
dbg_macro = "deny"
inline_always = "allow"
missing_safety_doc = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"
use_self = "allow"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1