103 lines
2.2 KiB
TOML
103 lines
2.2 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
rust-version = "1.70.0"
|
|
name = "num_enum"
|
|
version = "0.7.4"
|
|
authors = [
|
|
"Daniel Wagner-Hall <dawagner@gmail.com>",
|
|
"Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>",
|
|
"Vincent Esche <regexident@gmail.com>",
|
|
]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Procedural macros to make inter-operation between primitives and enums easier."
|
|
readme = "README.md"
|
|
keywords = [
|
|
"enum",
|
|
"conversion",
|
|
"safe",
|
|
"ffi",
|
|
"derive",
|
|
]
|
|
categories = ["rust-patterns"]
|
|
license = "BSD-3-Clause OR MIT OR Apache-2.0"
|
|
repository = "https://github.com/illicitonion/num_enum"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["external_doc"]
|
|
|
|
[badges.maintenance]
|
|
status = "passively-maintained"
|
|
|
|
[features]
|
|
complex-expressions = ["num_enum_derive/complex-expressions"]
|
|
default = ["std"]
|
|
external_doc = []
|
|
std = ["num_enum_derive/std"]
|
|
|
|
[lib]
|
|
name = "num_enum"
|
|
path = "src/lib.rs"
|
|
|
|
[[test]]
|
|
name = "default"
|
|
path = "tests/default.rs"
|
|
|
|
[[test]]
|
|
name = "from_primitive"
|
|
path = "tests/from_primitive.rs"
|
|
|
|
[[test]]
|
|
name = "into_primitive"
|
|
path = "tests/into_primitive.rs"
|
|
|
|
[[test]]
|
|
name = "renamed_num_enum"
|
|
path = "tests/renamed_num_enum.rs"
|
|
|
|
[[test]]
|
|
name = "try_build"
|
|
path = "tests/try_build.rs"
|
|
|
|
[[test]]
|
|
name = "try_from_primitive"
|
|
path = "tests/try_from_primitive.rs"
|
|
|
|
[[test]]
|
|
name = "unsafe_from_primitive"
|
|
path = "tests/unsafe_from_primitive.rs"
|
|
|
|
[dependencies.num_enum_derive]
|
|
version = "=0.7.4"
|
|
default-features = false
|
|
|
|
[dependencies.rustversion]
|
|
version = "1.0.4"
|
|
|
|
[dev-dependencies.anyhow]
|
|
version = "1.0.14"
|
|
|
|
[dev-dependencies.paste]
|
|
version = "1"
|
|
|
|
[dev-dependencies.trybuild]
|
|
version = "1.0.98"
|
|
|
|
[dev-dependencies.walkdir]
|
|
version = "2"
|