-
Notifications
You must be signed in to change notification settings - Fork 65
/
Cargo.toml
91 lines (81 loc) · 3.66 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
84
85
86
87
88
89
90
91
[package]
name = "mdcat"
description = "cat for markdown: Show markdown documents in terminals"
readme = "README.md"
documentation = "https://docs.rs/mdcat"
keywords = ["markdown", "less", "cat"]
homepage.workspace = true
repository.workspace = true
version.workspace = true
categories.workspace = true
license.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
[features]
default = ["mdcat-http-reqwest/native-tls"]
static = ["mdcat-http-reqwest/rustls-tls-native-roots"]
[dependencies]
anyhow = { version = "1.0.89", default-features = false, features = ["std"] }
clap = { version = "4.5.17", default-features = false, features = ["std", "derive", "help", "usage", "error-context"] }
clap_complete = "4.5.28"
human-panic = { version = "2.0.0", default-features = false, features = ["color"] }
mdcat-http-reqwest = { workspace = true }
pulldown-cmark = { workspace = true, features = ['simd'] }
pulldown-cmark-mdcat = { workspace = true, default-features = true }
reqwest = { workspace = true }
shell-words = { version = "1.1.0", default-features = false, features = ["std"] }
syntect = { workspace = true, features = ["regex-fancy", "default-syntaxes"] }
system_proxy = { version = "0.3.2", default-features = false }
tracing = { workspace = true }
tracing-subscriber = { version = "0.3.18", default-features = false, features = ["env-filter", "std", "fmt", "ansi"] }
[dev-dependencies]
similar-asserts = { workspace = true }
[target.'cfg(windows)'.dependencies]
anstyle-query = { version = "1.1.0", default-features = false }
[package.metadata.release]
release = true
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 },
]
[workspace]
members = [
"pulldown-cmark-mdcat",
"mdcat-http-reqwest"
]
[workspace.package]
homepage = "https://github.com/swsnr/mdcat"
repository = "https://github.com/swsnr/mdcat"
version = "2.5.0"
categories = ["command-line-utilities", "text-processing"]
license = "MPL-2.0 AND Apache-2.0"
authors = ["Sebastian Wiesner <[email protected]>"]
edition = "2021"
rust-version = "1.76"
[workspace.dependencies]
mime = { version = "0.3.17", default-features = false }
pulldown-cmark = { version = "0.12.1", default-features = false }
reqwest = { version = "0.12.7", default-features = false }
similar-asserts = "1.6.0"
syntect = { version = "5.2.0", default-features = false }
tracing = { version = "0.1.40", default-features = false, features = ["attributes"] }
insta = { version = "1.40.0", features = ["glob", "filters"] }
# Our own crates; pinned to an exact version because we release all of this repo
# in a single version. cargo release takes care of updating these.
pulldown-cmark-mdcat = { version = "=2.5.0", path = "pulldown-cmark-mdcat", default-features = false }
mdcat-http-reqwest = { version = "=2.5.0", path = "mdcat-http-reqwest", default-features = false}
[workspace.metadata.release]
allow-branch = ["main"]
pre-release-commit-message = "Release {{version}}"
tag-prefix = "mdcat-"
tag-name = "{{prefix}}{{version}}"
tag-message = "mdcat {{version}}"
sign-tag = true
# Github CI does this for us.
verify = false