| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
name = "zerocopy-derive" |
| 15 |
version = "0.8.27" |
| 16 |
authors = [ |
| 17 |
"Joshua Liebow-Feeser <[email protected]>", |
| 18 |
"Jack Wrenn <[email protected]>", |
| 19 |
] |
| 20 |
build = false |
| 21 |
exclude = [ |
| 22 |
".*", |
| 23 |
"tests/enum_from_bytes.rs", |
| 24 |
"tests/ui-nightly/enum_from_bytes_u16_too_few.rs.disabled", |
| 25 |
] |
| 26 |
autolib = false |
| 27 |
autobins = false |
| 28 |
autoexamples = false |
| 29 |
autotests = false |
| 30 |
autobenches = false |
| 31 |
description = "Custom derive for traits from the zerocopy crate" |
| 32 |
readme = false |
| 33 |
license = "BSD-2-Clause OR Apache-2.0 OR MIT" |
| 34 |
repository = "https://github.com/google/zerocopy" |
| 35 |
|
| 36 |
[lib] |
| 37 |
name = "zerocopy_derive" |
| 38 |
path = "src/lib.rs" |
| 39 |
proc-macro = true |
| 40 |
|
| 41 |
[[test]] |
| 42 |
name = "crate_path" |
| 43 |
path = "tests/crate_path.rs" |
| 44 |
|
| 45 |
[[test]] |
| 46 |
name = "deprecated" |
| 47 |
path = "tests/deprecated.rs" |
| 48 |
|
| 49 |
[[test]] |
| 50 |
name = "enum_from_zeros" |
| 51 |
path = "tests/enum_from_zeros.rs" |
| 52 |
|
| 53 |
[[test]] |
| 54 |
name = "enum_known_layout" |
| 55 |
path = "tests/enum_known_layout.rs" |
| 56 |
|
| 57 |
[[test]] |
| 58 |
name = "enum_no_cell" |
| 59 |
path = "tests/enum_no_cell.rs" |
| 60 |
|
| 61 |
[[test]] |
| 62 |
name = "enum_to_bytes" |
| 63 |
path = "tests/enum_to_bytes.rs" |
| 64 |
|
| 65 |
[[test]] |
| 66 |
name = "enum_try_from_bytes" |
| 67 |
path = "tests/enum_try_from_bytes.rs" |
| 68 |
|
| 69 |
[[test]] |
| 70 |
name = "enum_unaligned" |
| 71 |
path = "tests/enum_unaligned.rs" |
| 72 |
|
| 73 |
[[test]] |
| 74 |
name = "eq" |
| 75 |
path = "tests/eq.rs" |
| 76 |
|
| 77 |
[[test]] |
| 78 |
name = "hash" |
| 79 |
path = "tests/hash.rs" |
| 80 |
|
| 81 |
[[test]] |
| 82 |
name = "hygiene" |
| 83 |
path = "tests/hygiene.rs" |
| 84 |
|
| 85 |
[[test]] |
| 86 |
name = "include" |
| 87 |
path = "tests/include.rs" |
| 88 |
|
| 89 |
[[test]] |
| 90 |
name = "issue_2117" |
| 91 |
path = "tests/issue_2117.rs" |
| 92 |
|
| 93 |
[[test]] |
| 94 |
name = "paths_and_modules" |
| 95 |
path = "tests/paths_and_modules.rs" |
| 96 |
|
| 97 |
[[test]] |
| 98 |
name = "priv_in_pub" |
| 99 |
path = "tests/priv_in_pub.rs" |
| 100 |
|
| 101 |
[[test]] |
| 102 |
name = "struct_from_bytes" |
| 103 |
path = "tests/struct_from_bytes.rs" |
| 104 |
|
| 105 |
[[test]] |
| 106 |
name = "struct_from_zeros" |
| 107 |
path = "tests/struct_from_zeros.rs" |
| 108 |
|
| 109 |
[[test]] |
| 110 |
name = "struct_known_layout" |
| 111 |
path = "tests/struct_known_layout.rs" |
| 112 |
|
| 113 |
[[test]] |
| 114 |
name = "struct_no_cell" |
| 115 |
path = "tests/struct_no_cell.rs" |
| 116 |
|
| 117 |
[[test]] |
| 118 |
name = "struct_to_bytes" |
| 119 |
path = "tests/struct_to_bytes.rs" |
| 120 |
|
| 121 |
[[test]] |
| 122 |
name = "struct_try_from_bytes" |
| 123 |
path = "tests/struct_try_from_bytes.rs" |
| 124 |
|
| 125 |
[[test]] |
| 126 |
name = "struct_unaligned" |
| 127 |
path = "tests/struct_unaligned.rs" |
| 128 |
|
| 129 |
[[test]] |
| 130 |
name = "trybuild" |
| 131 |
path = "tests/trybuild.rs" |
| 132 |
|
| 133 |
[[test]] |
| 134 |
name = "union_from_bytes" |
| 135 |
path = "tests/union_from_bytes.rs" |
| 136 |
|
| 137 |
[[test]] |
| 138 |
name = "union_from_zeros" |
| 139 |
path = "tests/union_from_zeros.rs" |
| 140 |
|
| 141 |
[[test]] |
| 142 |
name = "union_known_layout" |
| 143 |
path = "tests/union_known_layout.rs" |
| 144 |
|
| 145 |
[[test]] |
| 146 |
name = "union_no_cell" |
| 147 |
path = "tests/union_no_cell.rs" |
| 148 |
|
| 149 |
[[test]] |
| 150 |
name = "union_to_bytes" |
| 151 |
path = "tests/union_to_bytes.rs" |
| 152 |
|
| 153 |
[[test]] |
| 154 |
name = "union_try_from_bytes" |
| 155 |
path = "tests/union_try_from_bytes.rs" |
| 156 |
|
| 157 |
[[test]] |
| 158 |
name = "union_unaligned" |
| 159 |
path = "tests/union_unaligned.rs" |
| 160 |
|
| 161 |
[[test]] |
| 162 |
name = "unsafe_cell" |
| 163 |
path = "tests/unsafe_cell.rs" |
| 164 |
|
| 165 |
[dependencies.proc-macro2] |
| 166 |
version = "1.0.1" |
| 167 |
|
| 168 |
[dependencies.quote] |
| 169 |
version = "1.0.10" |
| 170 |
|
| 171 |
[dependencies.syn] |
| 172 |
version = "2.0.46" |
| 173 |
features = ["full"] |
| 174 |
|
| 175 |
[dev-dependencies.dissimilar] |
| 176 |
version = "1.0.9" |
| 177 |
|
| 178 |
[dev-dependencies.libc] |
| 179 |
version = "=0.2.163" |
| 180 |
|
| 181 |
[dev-dependencies.once_cell] |
| 182 |
version = "=1.9" |
| 183 |
|
| 184 |
[dev-dependencies.prettyplease] |
| 185 |
version = "=0.2.17" |
| 186 |
|
| 187 |
[dev-dependencies.rustversion] |
| 188 |
version = "1.0" |
| 189 |
|
| 190 |
[dev-dependencies.static_assertions] |
| 191 |
version = "1.1" |
| 192 |
|
| 193 |
[dev-dependencies.trybuild] |
| 194 |
version = "=1.0.89" |
| 195 |
features = ["diff"] |
| 196 |
|
| 197 |
[lints.rust.unexpected_cfgs] |
| 198 |
level = "warn" |
| 199 |
priority = 0 |
| 200 |
check-cfg = ["cfg(zerocopy_derive_union_into_bytes)"] |