• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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]
10edition = "2018"
11name = "zerocopy-derive"
12version = "0.7.34"
13authors = ["Joshua Liebow-Feeser <joshlf@google.com>"]
14description = "Custom derive for traits from the zerocopy crate"
15license = "BSD-2-Clause OR Apache-2.0 OR MIT"
16repository = "https://github.com/google/zerocopy"
17rust-version = "1.60.0"
18
19# We prefer to include tests when publishing to crates.io so that Crater [1] can
20# detect regressions in our test suite. These two tests are excessively large,
21# so we exclude them to keep the published crate file small.
22#
23# [1] https://github.com/rust-lang/crater
24exclude = [".*", "tests/enum_from_bytes.rs", "tests/ui-nightly/enum_from_bytes_u16_too_few.rs.disabled"]
25
26[lib]
27proc-macro = true
28
29[dependencies]
30proc-macro2 = "1.0.1"
31quote = "1.0.10"
32syn = "2.0.31"
33
34[dev-dependencies]
35static_assertions = "1.1"
36testutil = { path = "../testutil" }
37# Pinned to a specific version so that the version used for local development
38# and the version used in CI are guaranteed to be the same. Future versions
39# sometimes change the output format slightly, so a version mismatch can cause
40# CI test failures.
41trybuild = { version = "=1.0.85", features = ["diff"] }
42zerocopy = { path = "../", features = ["default", "derive"] }
43