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

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

fastrand = "1.8.0"
once_cell = "1.16.0"
url = "2.3.1"
percent-encoding = "2.2.0"
xdg = "2.4.1"
backtrace = "= 0.3"
unicode-width = "0.1.10"
nom = "7"
libc = "0.2"
natord = "1.0.9"
md5 = "0.7.0"

lexopt = "0.2.1"

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

[dependencies.curl-sys]
version = "0.4.5"
# This disables the only default feature, "ssl". It doesn't affect the
# functionality, since it can't affect the libcurl.so available on the host.
#
# curl-sys, like other -sys crates, contains a tarball with the native library
# (i.e. Curl). It first tries to find the compiled library on the host, but if
# it can't, it unpacks the tarball and tries to build the library from source.
# The "ssl" feature of the crate instructs the build to find and link OpenSSL
# (or equivalent). For that, it pulls in openssl-sys crate, which during its
# configuration stage looks for OpenSSL header files.
#
# Since Newsboat requires both Curl and SSL libraries to be already compiled
# and available on the host, we don't need any of this business. In fact,
# openssl-sys introduces an unwanted dependency on OpenSSL headers, which
# exists even if we're linking (via libcurl) against another SSL library like
# GnuTLS. We disable this feature to avoid the dependency.
default-features = false

[dependencies.chrono]
version = "0.4"
default-features = false
# This is the same as default features for 0.4.23, minus "oldtime" and
# "wasmbind". We disable "oldtime" to get rid of dependency on `time` 0.1,
# which is vulnerable (CVE-2020-26235) and which we don't use. We disable
# `wasmbind` because we don't use WASM.
features = [ "alloc", "std", "clock" ]

[dev-dependencies]
tempfile = "3"
proptest = "1"
section_testing = "0.0.5"