[dependencies.zerocopy-derive]
optional = true
version = "=0.8.11"
[dev-dependencies.elain]
version = "0.3.0"
[dev-dependencies.itertools]
version = "0.11"
[dev-dependencies.rand]
default-features = false
features = ["small_rng"]
version = "0.8.5"
[dev-dependencies.rustversion]
version = "1.0"
[dev-dependencies.static_assertions]
version = "1.1"
[dev-dependencies.trybuild]
features = ["diff"]
version = "=1.0.89"
[dev-dependencies.zerocopy-derive]
version = "=0.8.11"
[features]
__internal_use_only_features_that_work_on_stable = ["alloc", "derive", "simd", "std"]
alloc = []
derive = ["zerocopy-derive"]
float-nightly = []
simd = []
simd-nightly = ["simd"]
std = ["alloc"]
[lib]
name = "zerocopy"
path = "src/lib.rs"
[package]
authors = ["Joshua Liebow-Feeser <joshlf@google.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = "build.rs"
categories = ["embedded", "encoding", "no-std::no-alloc", "parsing", "rust-patterns"]
description = '''Zerocopy makes zero-cost memory manipulation effortless. We write "unsafe" so you don't have to.'''
edition = "2021"
exclude = [".*"]
keywords = ["cast", "convert", "transmute", "transmutation", "type-punning"]
license = "BSD-2-Clause OR Apache-2.0 OR MIT"
name = "zerocopy"
readme = "README.md"
repository = "https://github.com/google/zerocopy"
rust-version = "1.56.0"
version = "0.8.11"
[package.metadata.build-rs]
zerocopy-aarch64-simd-1-59-0 = "1.59.0"
zerocopy-core-error-1-81-0 = "1.81.0"
zerocopy-diagnostic-on-unimplemented-1-78-0 = "1.78.0"
zerocopy-generic-bounds-in-const-fn-1-61-0 = "1.61.0"
zerocopy-panic-in-const-and-vec-try-reserve-1-57-0 = "1.57.0"
zerocopy-target-has-atomics-1-60-0 = "1.60.0"
[package.metadata.ci]
pinned-nightly = "nightly-2024-11-06"
pinned-stable = "1.82.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"]
[package.metadata.playground]
features = ["__internal_use_only_features_that_work_on_stable"]
[target."cfg(any())".dependencies.zerocopy-derive]
version = "=0.8.11"
[[test]]
name = "trybuild"
path = "tests/trybuild.rs"