[package] name = "sequoia-openpgp" description = "OpenPGP data types and associated machinery" version = "1.0.0" authors = [ "Igor Matuszewski ", "Justus Winter ", "Kai Michaelis ", "Neal H. Walfield ", "Nora Widdecke ", "Wiktor Kwapisiewicz ", ] build = "build.rs" documentation = "https://docs.sequoia-pgp.org/0.21.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.18" buffered-reader = { path = "../buffered-reader", version = "1.0.0", default-features = false } base64 = ">=0.12" bzip2 = { version = "0.4", optional = true } dyn-clone = "1" flate2 = { version = "1.0.1", optional = true } idna = "0.2" lalrpop-util = ">=0.17" lazy_static = "1.4.0" libc = "0.2.66" memsec = { version = ">=0.5", default-features = false } nettle = { version = "7", optional = true } regex = "1" regex-syntax = "0.6" sha1collisiondetection = { version = "0.2.3", default-features = false, features = ["std"] } thiserror = "1.0.2" backtrace = "0.3.3" unicode-normalization = "0.1.9" [target.'cfg(windows)'.dependencies] win-crypto-ng = { version = "0.4", features = ["rand", "block-cipher"], optional = true } num-bigint-dig = { version = "0.6", default-features = false, optional = true } ed25519-dalek = { version = "1", default-features = false, features = ["rand", "u64_backend"], optional = true } winapi = { version = "0.3.8", default-features = false, features = ["bcrypt"], optional = true } eax = "0.3" [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] chrono = { version = "0.4.10", default-features = false, features = ["std"] } [build-dependencies] lalrpop = ">=0.17" [dev-dependencies] quickcheck = { version = "0.9", default-features = false } rand = { version = "0.7", default-features = false } rpassword = "5.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"]