[workspace]
[package]
edition = "2018"
name = "zerocopy"
version = "0.7.35"
authors = ["Joshua Liebow-Feeser <joshlf@google.com>"]
description = "Utilities for zero-copy parsing and serialization"
categories = ["embedded", "encoding", "no-std::no-alloc", "parsing", "rust-patterns"]
keywords = ["cast", "convert", "transmute", "transmutation", "type-punning"]
license = "BSD-2-Clause OR Apache-2.0 OR MIT"
repository = "https://github.com/google/zerocopy"
rust-version = "1.60.0"
exclude = [".*"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"]
[package.metadata.ci]
pinned-stable = "1.79.0"
pinned-nightly = "nightly-2024-06-19"
[package.metadata.playground]
features = ["__internal_use_only_features_that_work_on_stable"]
[features]
default = ["byteorder"]
alloc = []
derive = ["zerocopy-derive"]
simd = []
simd-nightly = ["simd"]
__internal_use_only_features_that_work_on_stable = ["alloc", "derive", "simd"]
[dependencies]
zerocopy-derive = { version = "=0.7.35", path = "zerocopy-derive", optional = true }
[dependencies.byteorder]
version = "1.3"
default-features = false
optional = true
[target.'cfg(any())'.dependencies]
zerocopy-derive = { version = "=0.7.35", path = "zerocopy-derive" }
[dev-dependencies]
assert_matches = "1.5"
itertools = "0.11"
rand = { version = "0.8.5", features = ["small_rng"] }
rustversion = "1.0"
static_assertions = "1.1"
testutil = { path = "testutil" }
trybuild = { version = "=1.0.85", features = ["diff"] }
zerocopy-derive = { version = "=0.7.35", path = "zerocopy-derive" }
elain = "0.3.0"