Upgrade dependencies
- Upgrade Sequoia PGP to 2.4.0 - Remove deprecated `sequoia_wot::CertSynopsis::userids()` and replace with `self_signed_userids()`. - Add `lettre` as dependency for its SMTP functionality.
This commit is contained in:
Generated
+245
-305
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,7 @@ bytes = "1.11.1"
|
|||||||
clap = { version = "4", features = ["derive"] }
|
clap = { version = "4", features = ["derive"] }
|
||||||
fastrand = "2.4.1"
|
fastrand = "2.4.1"
|
||||||
indymilter = "0.3.0"
|
indymilter = "0.3.0"
|
||||||
|
lettre = "0.11.22"
|
||||||
log = "0.4.30"
|
log = "0.4.30"
|
||||||
log4rs = "1.3.0"
|
log4rs = "1.3.0"
|
||||||
sequoia-cert-store = "0.7.3"
|
sequoia-cert-store = "0.7.3"
|
||||||
@@ -41,3 +42,7 @@ daemonix = "0.1.0"
|
|||||||
anyhow = "1.0.100"
|
anyhow = "1.0.100"
|
||||||
clap = { version = "4", features = ["derive"] }
|
clap = { version = "4", features = ["derive"] }
|
||||||
clap_complete = "4"
|
clap_complete = "4"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ pub async fn get_certificates<'hc>(context: &HuskContext<'hc>, email: &str)
|
|||||||
|
|
||||||
for introducer in &context.introducers {
|
for introducer in &context.introducers {
|
||||||
log::debug!("consider introducer {:?}",
|
log::debug!("consider introducer {:?}",
|
||||||
introducer.cert.userids().map(|u| u.userid()).collect::<Vec<_>>());
|
introducer.cert.self_signed_userids().map(|u| u.userid()).collect::<Vec<_>>());
|
||||||
if introducer.can_introduce(format!("<{}>", email).as_str()) {
|
if introducer.can_introduce(format!("<{}>", email).as_str()) {
|
||||||
log::debug!(" introducer regex matches!");
|
log::debug!(" introducer regex matches!");
|
||||||
match lookup_certificates(context, email).await {
|
match lookup_certificates(context, email).await {
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ use std::fmt::{Display, Formatter};
|
|||||||
impl Display for Introducer {
|
impl Display for Introducer {
|
||||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||||
// XXX: This is unsafe as ANSI control chars are not handled.
|
// XXX: This is unsafe as ANSI control chars are not handled.
|
||||||
let uids = self.cert.userids()
|
let uids = self.cert.self_signed_userids()
|
||||||
.map(|u| String::from_utf8_lossy(u.userid().value()).to_string())
|
.map(|u| String::from_utf8_lossy(u.userid().value()).to_string())
|
||||||
.collect::<Vec<String>>()
|
.collect::<Vec<String>>()
|
||||||
.join(", ");
|
.join(", ");
|
||||||
|
|||||||
Reference in New Issue
Block a user