Debian Codegraph @

debian/missing-sources/zerocopy-derive/Cargo.toml.orig

raw
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.36"
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.40"
35 syn = { version = "2.0.46", features = ["full"] }
36
37 [dev-dependencies]
38 dissimilar = "1.0.9"
39 prettyplease = "=0.2.17"
40 proc-macro2 = "=1.0.80"
41 quote = "=1.0.40"
42 rustversion = "1.0"
43 static_assertions = "1.1"
44 syn = { version = "2.0.46", features = ["visit"] }
45 testutil = { path = "../testutil" }
46 # Pinned to a specific version so that the version used for local development
47 # and the version used in CI are guaranteed to be the same. Future versions
48 # sometimes change the output format slightly, so a version mismatch can cause
49 # CI test failures.
50 trybuild = { version = "=1.0.89", features = ["diff"] }
51 # We import as `zerocopy-renamed` so that we can refer to the crate as
52 # `zerocopy-renamed` in the generated code, which allows us to test that the
53 # `crate` attribute works correctly, and ensures that we never accidentally
54 # hard-code the name `zerocopy` in the generated code.
55 zerocopy-renamed = { package = "zerocopy", path = "../", features = ["derive"] }