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

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

fastrand = "2.0.2"
url = "2.5.0"
percent-encoding = "2.3.1"
xdg = "2.5.2"
backtrace = "= 0.3"
unicode-width = "0.1.11"
nom = "7"
libc = "0.2"
natord = "1.0.9"
md5 = "0.7.0"
lexopt = "0.3.0"
chrono = "0.4"

[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.72"
# 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

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