sequoia-sq/Cargo.toml
David Runge ed6069623b
Replace CLI I/O argument duplication with common facilities
- Replace `sq_cli::types::IoArgs` with the more granular
  `sq_cli::types::FileOrStdin`, `sq_cli::types::FileOrCertStore` and
  `sq_cli::types::FileOrStdout`.
- Replace all generic `input` (describing single files) and `output`
  arguments with the respective new facilities to share code and not
  repeat ourselves.
- Replace the `open_or_stdin()` function with `FileOrStdin::open()`.
- Replace the `create_or_stdout()` function with the private
  `FileOrStdout::create()`, so that it can not be called directly.
- Replace the `emit_unstable_cli_warning()`
  and `create_or_stdout_unsafe()` functions with
  `FileOrStdout::create_unsafe()`.
- Replace the `create_or_stdout_safe()` function with
  `FileOrStdout::create_safe()`.
- Replace the `create_or_stdout_pgp()` function with
  `FileOrStdout::create_pgp_safe()`.
- Remove the field `unstable_cli_warning_emitted` from `Config`, as
  it is replaced by the static `UNSTABLE_CLI_WARNING`, which allows for
  tracking whether a warning has been emitted across several instances
  of `FileOrStdout`.
2023-06-17 15:39:14 +02:00

101 lines
3.1 KiB
TOML

[package]
name = "sequoia-sq"
description = "Command-line frontends for Sequoia"
version = "0.30.1"
authors = [
"Azul <azul@sequoia-pgp.org>",
"Heiko Schaefer <heiko@schaefer.name>",
"Igor Matuszewski <igor@sequoia-pgp.org>",
"Justus Winter <justus@sequoia-pgp.org>",
"Kai Michaelis <kai@sequoia-pgp.org>",
"Lars Wirzenius <liw@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.rs/sequoia-sq"
homepage = "https://sequoia-pgp.org/"
repository = "https://gitlab.com/sequoia-pgp/sequoia-sq"
readme = "README.md"
keywords = ["cryptography", "openpgp", "pgp", "encryption", "signing"]
categories = ["cryptography", "authentication", "command-line-utilities"]
license = "GPL-2.0-or-later"
edition = "2021"
rust-version = "1.63"
[badges]
gitlab = { repository = "sequoia-pgp/sequoia-sq" }
maintenance = { status = "actively-developed" }
[dependencies]
buffered-reader = { version = "1.0.0", default-features = false, features = ["compression-deflate"] }
dirs = "5"
dot-writer = "0.1.3"
sequoia-openpgp = { version = "1.13", default-features = false, features = ["compression-deflate"] }
sequoia-autocrypt = { version = "0.25", default-features = false, optional = true }
sequoia-net = { version = "0.27", default-features = false }
anyhow = "1.0.18"
chrono = "0.4.10"
# For an MSRV of 1.63: 4.0.32.
clap = { version = "4", features = ["derive", "env", "string", "wrap_help"] }
itertools = "0.10"
once_cell = "1.17"
sequoia-cert-store = "0.3"
sequoia-wot = "0.8"
tempfile = "3.1"
tokio = { version = "1.13.1" }
rpassword = "6.0"
serde_json = "1.0.80"
serde = { version = "1.0.137", features = ["derive"] }
roff = "0.2.1"
terminal_size = "0.2.6"
[build-dependencies]
anyhow = "1.0.18"
buffered-reader = { version = "1.0.0", default-features = false, features = ["compression-deflate"] }
# For an MSRV of 1.63: 4.0.32
clap = { version = "4", features = ["derive", "env", "string", "wrap_help"] }
# For an MSRV of 1.63: 4.0.7.
clap_complete = "4"
# For an MSRV of 1.63: 0.2.6
clap_mangen = "0.2"
chrono = "0.4.10"
sequoia-openpgp = { version = "1.13", default-features = false }
sequoia-net = { version = "0.27", default-features = false }
subplot-build = { version = "0.7.0", optional = true }
cfg-if = "1"
terminal_size = "0.2.6"
[dev-dependencies]
subplotlib = "0.7.0"
fehler = "1.0.0"
# For an MSRV of 1.63: 2.0.8.
assert_cmd = "2"
# For an MSRV of 1.63: 2.1.5
predicates = "2"
[[bin]]
name = "sq"
path = "src/sq.rs"
bench = false
[features]
default = [
"crypto-nettle",
"compression-bzip2",
"autocrypt",
]
crypto-nettle = ["sequoia-openpgp/crypto-nettle"]
crypto-openssl = ["sequoia-openpgp/crypto-openssl"]
crypto-botan = ["sequoia-openpgp/crypto-botan"]
crypto-botan2 = ["sequoia-openpgp/crypto-botan2"]
crypto-cng = ["sequoia-openpgp/crypto-cng"]
crypto-rust = ["sequoia-openpgp/crypto-rust"]
compression-bzip2 = ["sequoia-openpgp/compression-bzip2"]
autocrypt = ["sequoia-autocrypt"]
subplot = ["subplot-build"]
[profile.release]
debug = true