summaryrefslogtreecommitdiff
path: root/rust/libnewsboat/Cargo.toml
blob: 6a0ee2655c50800737c2f9ee08c87607531fc619 (plain) (blame)
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.25.1"
authors = ["Alexander Batischev <eual.jp@gmail.com>"]
edition = "2018"

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

chrono = "0.4"
fastrand = "1.5.0"
once_cell = "1.8.0"
url = "2.2.2"
percent-encoding = "2.0.0"
xdg = "2.2.0"
backtrace = "= 0.3"
unicode-width = "0.1.9"
nom = "7"
libc = "0.2"
natord = "1.0.9"

[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-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

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