This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathCargo.toml
83 lines (74 loc) · 2.89 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
72
73
74
75
76
77
78
79
80
81
82
83
[package]
name = "mdcat"
description = "cat for markdown: Show markdown documents in terminals"
readme = "README.md"
homepage = "https://github.com/swsnr/mdcat"
repository = "https://github.com/swsnr/mdcat"
documentation = "https://docs.rs/mdcat"
keywords = ["markdown", "less", "cat"]
version = "1.1.0"
categories = ["command-line-utilities", "text-processing"]
license = "MPL-2.0"
authors = ["Sebastian Wiesner <[email protected]>"]
edition = "2021"
[features]
default = ["native-tls"]
native-tls = ["reqwest/native-tls"]
# For static builds use rustls to avoid cross-building openssl, but use the
# native certificate roots for maximum compatibility
static = ["reqwest/rustls-tls-native-roots"]
[dependencies]
ansi_term = "0.12.1"
anyhow = "1.0.69"
base64 = "0.21.0"
clap = { version = "4.1.4", features = ["derive"] }
env_proxy = "0.4.1"
gethostname = "0.4.1"
image = "0.24.5"
mime = "0.3.16"
mime_guess = "2.0.4"
once_cell = "1.17.0"
pulldown-cmark = { version = "0.9.2", default-features = false, features = ['simd'] }
reqwest = { version = "0.11.14", default-features = false, features = ["gzip", "brotli", "blocking"]}
resvg = "0.29.0"
shell-words = "1.1.0"
tracing = { version = "0.1.37", features = ["release_max_level_warn"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
url = "2.3.1"
[dependencies.syntect]
version = "5.0.0"
default-features = false
features = ["parsing", "regex-fancy", "default-themes", "default-syntaxes"]
[target.'cfg(unix)'.dependencies]
libc = "0.2.139"
[target.'cfg(windows)'.dependencies]
terminal_size = "0.2.3"
[dev-dependencies]
glob = "0.3.1"
hyper = { version="0.14.24", default-features=false, features = ["server", "http1", "runtime"] }
lazy_static = "1.4.0"
pretty_assertions = "1.3.0"
temp-env = "0.3.1"
tokio = { version="1.25", default-features=false, features=["time"] }
[build-dependencies]
# To generate completions during build
clap = { version = "4.1.4", features = ["derive"] }
clap_complete = "4.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}}"
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/swsnr/mdcat/compare/{{tag_name}}...HEAD\n[{{version}}]: ", exactly = 1 },
]