# 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.78.0"
name = "dis"
version = "0.0.2"
authors = ["Peter Lyons Kehl<peter.kehl@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Dis(playish): Wrappers, trait extensions and asserts to wrap type(s) implementing Display and an optional extra. Use with proc-macro2-diagnostics, no-std and no-alloc: A subset of the functionality accepts Display (instead of String)."
homepage = "https://github.com/peter-lyons-kehl/dis"
readme = "README.md"
keywords = [
    "display",
    "error-handling",
    "string",
    "wrapper",
    "extension",
]
categories = [
    "development-tools",
    "no-std",
    "no-std::no-alloc",
    "rust-patterns",
]
license = "BSD-2-Clause OR Apache-2.0 OR MIT"
repository = "https://github.com/peter-lyons-kehl/dis"

[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"

[features]
alloc = []
proc-macro2 = [
    "dep:proc-macro2",
    "alloc",
]
proc-macro2-diagnostics = [
    "proc-macro2",
    "dep:proc-macro2-diagnostics",
]

[lib]
name = "dis"
path = "src/lib.rs"

[dependencies.proc-macro2]
version = "1.0.60"
features = ["span-locations"]
optional = true

[dependencies.proc-macro2-diagnostics]
version = "0.10.1"
optional = true
