summaryrefslogtreecommitdiffstats
path: root/rust/libnewsboat/Cargo.toml
blob: 47a942e95d311c9038541a14f3ff237cc1e1a09b (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
[package]
name = "libnewsboat"
version = "2.20.0"
authors = ["Alexander Batischev <eual.jp@gmail.com>"]
edition = "2018"

[dependencies]
strprintf = { path="../strprintf" }
regex-rs = { path="../regex-rs" }

chrono = "0.4"
rand = "0.6"
once_cell = "1.0.0"
url = "2.0.0"
percent-encoding = "2.0.0"
dirs = "2.0.0"
xdg = "2.2.0"
backtrace = "= 0.3"
unicode-width = "0.1.5"
nom = "5"
curl-sys = "0.4.5"
libc = "0.2"
gettext-rs = "0.4.1"
natord = "1.0.9"

# We don't use the following crates, but we pin their versions to make sure
# that Newsboat builds with Rust 1.25 and later.
libz-sys = "= 1.0.17"

# The following constraints close security holes
# https://rustsec.org/advisories/RUSTSEC-2019-0009
# https://rustsec.org/advisories/RUSTSEC-2019-0012
smallvec = ">= 0.6.10"

[dependencies.clap]
version = "2.33"
# This disables three features, for the following reasons:
# - "suggestions" and "color" features: we provide our own help text, so don't
#   need those
# - "vec_map": this provides "a slight performance improvement" at the cost of
#   an additional dependency. At the time of writing Rust is still a new kid on
#   the block, distros are still figuring out the ways to package crates, so
#   I want as little dependencies as practically possible.
default-features = false

[dependencies.gettext-sys]
version = "0.19.8"
# Don't let the crate build its own copy of gettext; force it to use the one
# built into glibc.
features = [ "gettext-system" ]

[dev-dependencies]
tempfile = "3"
# 0.9.6 fixes build failures on Nightly >=2020-04-08: https://github.com/newsboat/newsboat/issues/870
proptest = ">=0.9.6"
section_testing = "0.0.4"