forked from kupiakos/open-enum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
33 lines (28 loc) · 1.09 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[package]
name = "open-enum"
version = "0.5.2"
authors = ["Alyssa Haroldsen <kupiakos@google.com>"]
description = "An attribute for generating \"open\" fieldless enums, those that accept any integer value, by using a newtype struct and associated constants"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/kupiakos/open-enum"
categories = ["no-std", "rust-patterns"]
keywords = ["enum", "open", "integer", "newtype"]
include = ["/src", "/LICENSE", "Cargo.toml"]
[features]
# This is not named libc because it would require "dep:libc",
# which doesn't work with trybuild: https://github.com/dtolnay/trybuild/issues/171.
libc_ = ["libc", "open-enum-derive/repr_c"]
std = ["open-enum-derive/repr_c"]
# Needed to test #[deny(missing_docs)], which doesn't trigger in unit or integration tests.
[[bin]]
name = "test_lints"
path = "src/test-lints.rs"
[dependencies]
open-enum-derive = { path = "derive", version = "=0.5.2" }
libc = { version = "0.2", optional = true }
[dev-dependencies]
trybuild = "1"
zerocopy = { version = "0.7.11", features = ["derive"] }
[workspace]
members = ["derive"]