summaryrefslogtreecommitdiffstats
path: root/third_party/rust/displaydoc/Cargo.toml
blob: 1affcca6b745591c9b3dfe34df6d164191835250 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# 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 = "2018"
name = "displaydoc"
version = "0.2.4"
authors = ["Jane Lusby <jlusby@yaah.dev>"]
description = """
A derive macro for implementing the display Trait via a doc comment and string interpolation
"""
homepage = "https://github.com/yaahc/displaydoc"
documentation = "https://docs.rs/displaydoc"
readme = "README.md"
keywords = [
    "display",
    "derive",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yaahc/displaydoc"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.release]
no-dev-version = true
pre-release-hook = ["./update-readme.sh"]

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "Unreleased"
replace = "{{version}}"

[[package.metadata.release.pre-release-replacements]]
file = "src/lib.rs"
search = '#!\[doc\(html_root_url.*'
replace = "#![doc(html_root_url = \"https://docs.rs/{{crate_name}}/{{version}}\")]"
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "ReleaseDate"
replace = "{{date}}"

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "<!-- next-header -->"
replace = """
<!-- next-header -->

# [Unreleased] - ReleaseDate"""
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '\.\.\.HEAD'
replace = "...{{tag_name}}"
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "<!-- next-url -->"
replace = """
<!-- next-url -->
[Unreleased]: https://github.com/yaahc/{{crate_name}}/compare/{{tag_name}}...HEAD"""
exactly = 1

[lib]
path = "src/lib.rs"
proc-macro = true

[dependencies.proc-macro2]
version = "1.0"

[dependencies.quote]
version = "1.0"

[dependencies.syn]
version = "2.0"

[dev-dependencies.libc]
version = "0.2"
default-features = false

[dev-dependencies.pretty_assertions]
version = "0.6.1"

[dev-dependencies.rustversion]
version = "1.0.0"

[dev-dependencies.static_assertions]
version = "1.1"

[dev-dependencies.thiserror]
version = "1.0.24"

[dev-dependencies.trybuild]
version = "1.0"

[features]
default = ["std"]
std = []