| 1 |
# Copyright 2019 The Fuchsia Authors |
| 2 |
# |
| 3 |
# Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0 |
| 4 |
# <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT |
| 5 |
# license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option. |
| 6 |
# This file may not be copied, modified, or distributed except according to |
| 7 |
# those terms. |
| 8 |
|
| 9 |
[package] |
| 10 |
edition = "2021" |
| 11 |
name = "zerocopy-derive" |
| 12 |
version = "0.8.27" |
| 13 |
authors = ["Joshua Liebow-Feeser <[email protected]>", "Jack Wrenn <[email protected]>"] |
| 14 |
description = "Custom derive for traits from the zerocopy crate" |
| 15 |
license = "BSD-2-Clause OR Apache-2.0 OR MIT" |
| 16 |
repository = "https://github.com/google/zerocopy" |
| 17 |
|
| 18 |
# We prefer to include tests when publishing to crates.io so that Crater [1] can |
| 19 |
# detect regressions in our test suite. These two tests are excessively large, |
| 20 |
# so we exclude them to keep the published crate file small. |
| 21 |
# |
| 22 |
# [1] https://github.com/rust-lang/crater |
| 23 |
exclude = [".*", "tests/enum_from_bytes.rs", "tests/ui-nightly/enum_from_bytes_u16_too_few.rs.disabled"] |
| 24 |
|
| 25 |
[lints.rust] |
| 26 |
# See #1792 for more context. |
| 27 |
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(zerocopy_derive_union_into_bytes)'] } |
| 28 |
|
| 29 |
[lib] |
| 30 |
proc-macro = true |
| 31 |
|
| 32 |
[dependencies] |
| 33 |
proc-macro2 = "1.0.1" |
| 34 |
quote = "1.0.10" |
| 35 |
syn = { version = "2.0.46", features = ["full"] } |
| 36 |
|
| 37 |
[dev-dependencies] |
| 38 |
dissimilar = "1.0.9" |
| 39 |
# We don't use this directly, but trybuild does. On the MSRV toolchain, the |
| 40 |
# version resolver fails to select any version for once_cell unless we |
| 41 |
# depend on it directly. |
| 42 |
once_cell = "=1.9" |
| 43 |
# Same MSRV issue as above. |
| 44 |
libc = "=0.2.163" |
| 45 |
# This is the latest version which is compatible with `syn` 2.0.46, which we pin |
| 46 |
# to in CI for MSRV compatibility reasons. |
| 47 |
prettyplease = "=0.2.17" |
| 48 |
rustversion = "1.0" |
| 49 |
static_assertions = "1.1" |
| 50 |
testutil = { path = "../testutil" } |
| 51 |
# Pinned to a specific version so that the version used for local development |
| 52 |
# and the version used in CI are guaranteed to be the same. Future versions |
| 53 |
# sometimes change the output format slightly, so a version mismatch can cause |
| 54 |
# CI test failures. |
| 55 |
trybuild = { version = "=1.0.89", features = ["diff"] } |
| 56 |
zerocopy = { path = "../", features = ["derive"] } |