This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
/
Cargo.toml
71 lines (63 loc) · 2.55 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
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
[package]
name = "mdcat"
description = "cat for markdown: Show markdown documents in terminals"
readme = "README.md"
homepage = "https://github.com/lunaryorn/mdcat"
repository = "https://github.com/lunaryorn/mdcat"
documentation = "https://docs.rs/mdcat"
keywords = ["markdown", "less", "cat"]
version = "0.28.0"
categories = ["command-line-utilities", "text-processing"]
license = "MPL-2.0"
authors = ["Sebastian Wiesner <sebastian@swsnr.de>"]
edition = "2021"
[dependencies]
ansi_term = "0.12.1"
anyhow = "1.0.58"
base64 = "0.13.0"
clap = { version = "3.2.12", default-features = false, features = ["std", "cargo", "deprecated"] }
env_proxy = "0.4.1"
gethostname = "0.2.3"
image = "0.24.0"
mime = "0.3.16"
pulldown-cmark = { version = "0.9.2", default-features = false, features = ['simd'] }
shell-words = "1.1.0"
tracing = { version = "0.1.35", features = ["release_max_level_warn"] }
tracing-subscriber = { version = "0.3.14", features = ["env-filter"] }
ureq = { version = "2.5.0", features = ["tls", "native-certs"] }
url = "2.2.2"
[dependencies.syntect]
version = "5.0.0"
default-features = false
features = ["parsing", "regex-fancy", "default-themes", "default-syntaxes"]
[target.'cfg(unix)'.dependencies]
libc = "0.2.126"
[target.'cfg(windows)'.dependencies]
terminal_size = "0.2.1"
[dev-dependencies]
pretty_assertions = "1.2.1"
lazy_static = "1.4.0"
test-generator = "0.3.0"
[build-dependencies]
# To generate completions during build
clap = { version = "3.2.12", default-features = false, features = ["std", "cargo", "deprecated"] }
clap_complete = "3.1.1"
[profile.release]
# Enable LTO for release builds; makes the binary a lot smaller
lto = true
[package.metadata.release]
allow-branch = ["main"]
pre-release-commit-message = "Release {{version}}"
post-release-commit-message = "Bump version to {{next_version}}"
tag-prefix = "mdcat-"
tag-name = "{{prefix}}{{version}}"
tag-message = "mdcat {{version}}"
pre-release-replacements = [
# Update version and release date in manpage
{ file="mdcat.1.adoc", search="(?m)^:revnumber:.*$", replace = ":revnumber: {{version}}" },
{ file="mdcat.1.adoc", search="(?m)^:revdate:.*$", replace = ":revdate: {{date}}" },
# Update the changelog
{ file="CHANGELOG.md", search="## \\[Unreleased\\]", replace = "## [Unreleased]\n\n## [{{version}}] – {{date}}", exactly = 1 },
{ file="CHANGELOG.md", search="HEAD", replace = "{{tag_name}}", exactly = 1 },
{ file="CHANGELOG.md", search="\\[Unreleased\\]: ", replace = "[Unreleased]: https://github.com/lunaryorn/mdcat/compare/{{tag_name}}...HEAD\n[{{version}}]: ", exactly = 1 },
]