[package]
edition = "2024"
rust-version = "1.85.0"
name = "parse-display"
version = "0.11.0"
authors = ["frozenlib"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Procedural macro to implement Display and FromStr using common settings."
documentation = "https://docs.rs/parse-display/"
readme = "README.md"
keywords = [
"derive",
"enum",
"from_str",
"display",
"regex",
]
categories = ["parsing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/frozenlib/parse-display"
[package.metadata.docs.rs]
features = ["docs"]
[features]
default = ["std"]
docs = []
std = [
"regex",
"regex-syntax",
"parse-display-derive/std",
]
[lib]
name = "parse_display"
path = "src/lib.rs"
[[test]]
name = "both"
path = "tests/both.rs"
[[test]]
name = "clippy_self"
path = "tests/clippy_self.rs"
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "compile_warn"
path = "tests/compile_warn.rs"
[[test]]
name = "display"
path = "tests/display.rs"
[[test]]
name = "display_std"
path = "tests/display_std.rs"
[[test]]
name = "from_str"
path = "tests/from_str.rs"
[[test]]
name = "from_str_regex"
path = "tests/from_str_regex.rs"
[[test]]
name = "lib"
path = "tests/lib.rs"
[dependencies.parse-display-derive]
version = "=0.11.0"
[dependencies.regex]
version = "1.12.3"
optional = true
[dependencies.regex-syntax]
version = "0.8.10"
optional = true
[dev-dependencies.trybuild]
version = "1.0.116"