Skip to content

Commit

Permalink
email: prepare v0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Oct 28, 2024
1 parent 2ea5098 commit 212037c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,7 @@ dependencies = [

[[package]]
name = "email-lib"
version = "1.0.0"
version = "0.26.0"
dependencies = [
"advisory-lock",
"async-std",
Expand Down Expand Up @@ -3679,9 +3679,9 @@ dependencies = [

[[package]]
name = "keyring"
version = "3.6.0"
version = "3.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07fcc6bcd4168febe3f0b23e2aa579c8e46e34a73474f948b1f5c3f6dfe76a75"
checksum = "2f8fe839464d4e4b37d756d7e910063696af79a7e877282cb1825e4ec5f10833"
dependencies = [
"byteorder",
"dbus-secret-service",
Expand Down Expand Up @@ -3879,9 +3879,9 @@ dependencies = [

[[package]]
name = "libm"
version = "0.2.9"
version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3bda4c6077b0b08da2c48b172195795498381a7c8988c9e6212a6c55c5b9bd70"
checksum = "a00419de735aac21d53b0de5ce2c03bd3627277cf471300f27ebc89f7d828047"

[[package]]
name = "libredox"
Expand Down Expand Up @@ -5884,9 +5884,9 @@ dependencies = [

[[package]]
name = "rustix"
version = "0.38.37"
version = "0.38.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
checksum = "aa260229e6538e52293eeb577aabd09945a09d6d9cc0fc550ed7529056c2e32a"
dependencies = [
"bitflags 2.6.0",
"errno",
Expand Down
2 changes: 2 additions & 0 deletions email/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.26.0] - 2024-10-28

### Added

- Added `tokio-rustls` cargo feature. The aim is to be able, one day, to compile `email-lib` with other async runtimes and other TLS options.
Expand Down
19 changes: 10 additions & 9 deletions email/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
[package]
name = "email-lib"
description = "Cross-platform, asynchronous Rust library to manage emails"
version = "1.0.0"
version = "0.26.0"
authors = ["soywod <clement.douin@posteo.net>"]
edition = "2021"
license = "MIT"
categories = ["email", "network-programming"]
categories = ["asynchronous", "email", "network-programming"]
keywords = ["email", "maildir", "imap", "smtp", "sendmail"]
homepage = "https://pimalaya.org/"
documentation = "https://docs.rs/email-lib/latest/email/"
repository = "https://github.com/pimalaya/core/tree/master/email/"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs", "--document-private-items"]
features = ["tokio-rustls", "imap", "maildir", "sendmail", "smtp", "autoconfig", "derive", "keyring", "notify", "oauth2", "sync", "thread", "watch", "pgp-commands", "pgp-native"]
rustdoc-args = ["--cfg", "docsrs"]

[lib]
name = "email"

[features]
default = [
"tokio-rustls",
#"imap",
#"maildir",
#"notmuch",
Expand Down Expand Up @@ -115,15 +116,15 @@ pgp-commands = ["mml-lib/pgp-commands", "pgp"]
pgp-gpg = ["mml-lib/pgp-gpg", "pgp"]
pgp-native = ["dep:pgp-lib", "dep:keyring-lib", "mml-lib/pgp-native", "pgp"]

# TODO: Async runtime with Rust crypto
# For now, only tokio is supported. Main blockers are:
# Async runtime with Rust crypto
# TODO: For now, only tokio is supported. Main blockers are:
# - hickory: does not support well async-std with TLS alternatives, need to give it a try
# - mail-send: does only support tokio + rustls (see https://github.com/stalwartlabs/mail-send/issues/36)
#
tokio-rustls = ["dep:tokio-rustls", "tokio", "rustls"]
tokio-native-tls = ["dep:tokio-native-tls", "tokio", "native-tls"]
#async-std-rustls = ["async-std", "rustls"]
#async-std-native-tls = ["async-std", "native-tls"]
tokio-rustls = ["dep:tokio-rustls", "tokio", "rustls"]
tokio-native-tls = ["dep:tokio-native-tls", "tokio", "native-tls"]

# Async runtime
#
Expand Down Expand Up @@ -179,7 +180,7 @@ pgp-lib = { version = "1", optional = true, features = ["key-discovery"], path =
process-lib = { version = "1", default-features = false, path = "../process" }
rayon = { version = "1.6", optional = true }
regex = "1.5"
secret-lib = { version = "1", default-features = false, features = ["tokio", "command"], path = "../secret" }
secret-lib = { version = "1", default-features = false, features = ["command"], path = "../secret" }
serde = { version = "1", optional = true, features = ["derive"] }
serde-xml-rs = { version = "0.6", optional = true }
shellexpand-utils = "=0.2.1"
Expand Down

0 comments on commit 212037c

Please sign in to comment.