summaryrefslogtreecommitdiffstats
path: root/openpgp/Cargo.toml
blob: e286821384385def711111876a367f50cc9ea697 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[package]
name = "sequoia-openpgp"
description = "OpenPGP data types and associated machinery"
version = "0.20.0"
authors = [
    "Igor Matuszewski <igor@sequoia-pgp.org>",
    "Justus Winter <justus@sequoia-pgp.org>",
    "Kai Michaelis <kai@sequoia-pgp.org>",
    "Neal H. Walfield <neal@sequoia-pgp.org>",
    "Nora Widdecke <nora@sequoia-pgp.org>",
    "Wiktor Kwapisiewicz <wiktor@sequoia-pgp.org>",
]
build = "build.rs"
documentation = "https://docs.sequoia-pgp.org/0.20.0/sequoia_openpgp"
homepage = "https://sequoia-pgp.org/"
repository = "https://gitlab.com/sequoia-pgp/sequoia"
readme = "README.md"
keywords = ["cryptography", "openpgp", "pgp", "encryption", "signing"]
categories = ["cryptography", "authentication", "email"]
license = "GPL-2.0-or-later"
edition = "2018"

[badges]
gitlab = { repository = "sequoia-pgp/sequoia" }
maintenance = { status = "actively-developed" }

[dependencies]
anyhow = "=1.0.5"
buffered-reader = { path = "../buffered-reader", version = "0.20", default-features = false }
base64 = "=0.13.0"
bzip2 = { version = "=0.4.1", optional = true }
dyn-clone = "=1.0.0"
flate2 = { version = "=1.0.1", optional = true }
idna = "=0.2.0"
lalrpop-util = "=0.19.0"
lazy_static = "=1.4.0"
libc = "=0.2.66"
memsec = { version = "=0.6.0", default-features = false }
nettle = { version = "=7.0.0", optional = true }
regex = "=1.0.0"
sha1collisiondetection = { version = "=0.2.2", default-features = false, features = ["std"] }
thiserror = "=1.0.2"
backtrace = "=0.3.46"
unicode-normalization = "=0.1.9"

[target.'cfg(windows)'.dependencies]
win-crypto-ng = { version = "=0.4.0", features = ["rand", "block-cipher"], optional = true }
num-bigint-dig = { version = "=0.6.0", default-features = false, optional = true }
ed25519-dalek = { version = "=1.0.0", default-features = false, features = ["rand", "u64_backend"], optional = true }
winapi = { version = "=0.3.8", default-features = false, features = ["bcrypt"], optional = true }
eax = "=0.3.0"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
chrono = { version = "=0.4.10", default-features = false, features = ["std"] }

[build-dependencies]
lalrpop = "=0.19.0"

[dev-dependencies]
quickcheck = { version = "=0.9.0", default-features = false }
rand = { version = "=0.7.0", default-features = false }
rpassword = "=5.0.0"

[features]
default = ["compression", "crypto-nettle"]
# TODO(#333): Allow for/implement more backends
crypto-nettle = ["nettle"]
crypto-cng = ["winapi", "win-crypto-ng", "ed25519-dalek", "num-bigint-dig"]

# The compression algorithms.
compression = ["compression-deflate", "compression-bzip2"]
compression-deflate = ["flate2", "buffered-reader/compression-deflate"]
compression-bzip2 = ["bzip2", "buffered-reader/compression-bzip2"]

# Vendoring.
vendored = ["vendored-nettle"]
vendored-nettle = ["nettle/vendored"]

[[example]]
name = "pad"
required-features = ["compression-deflate"]