[package]
edition = "2024"
rust-version = "1.93"
name = "elektromail"
version = "0.1.1"
authors = ["Wolfgang"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A minimal, Rust-based IMAP + SMTP mail server for local development and testing"
documentation = "https://docs.rs/elektromail"
readme = "README.md"
keywords = [
"imap",
"smtp",
"mail",
"testing",
"development",
]
categories = [
"development-tools",
"network-programming",
]
license = "EUPL-1.2"
repository = "https://gitlab.com/wolfgang/elektromail"
[lib]
name = "elektromail"
path = "src/lib.rs"
[[bin]]
name = "elektromail"
path = "src/main.rs"
[[test]]
name = "auth_runtime"
path = "tests/auth_runtime.rs"
[[test]]
name = "docker_procedere_integration"
path = "tests/docker_procedere_integration.rs"
[[test]]
name = "dsn_rules"
path = "tests/dsn_rules.rs"
[[test]]
name = "greenmail_parity"
path = "tests/greenmail_parity.rs"
[[test]]
name = "http_admin_api"
path = "tests/http_admin_api.rs"
[[test]]
name = "http_control_plane"
path = "tests/http_control_plane.rs"
[[test]]
name = "http_openapi_ui"
path = "tests/http_openapi_ui.rs"
[[test]]
name = "imap_append"
path = "tests/imap_append.rs"
[[test]]
name = "imap_append_flags_internaldate"
path = "tests/imap_append_flags_internaldate.rs"
[[test]]
name = "imap_authenticate_plain"
path = "tests/imap_authenticate_plain.rs"
[[test]]
name = "imap_capability"
path = "tests/imap_capability.rs"
[[test]]
name = "imap_copy_expunge"
path = "tests/imap_copy_expunge.rs"
[[test]]
name = "imap_fetch_body_peek"
path = "tests/imap_fetch_body_peek.rs"
[[test]]
name = "imap_fetch_body_size"
path = "tests/imap_fetch_body_size.rs"
[[test]]
name = "imap_fetch_envelope_bodystructure"
path = "tests/imap_fetch_envelope_bodystructure.rs"
[[test]]
name = "imap_fetch_header"
path = "tests/imap_fetch_header.rs"
[[test]]
name = "imap_fetch_mime"
path = "tests/imap_fetch_mime.rs"
[[test]]
name = "imap_fetch_range"
path = "tests/imap_fetch_range.rs"
[[test]]
name = "imap_idle"
path = "tests/imap_idle.rs"
[[test]]
name = "imap_idle_push"
path = "tests/imap_idle_push.rs"
[[test]]
name = "imap_list_lsub"
path = "tests/imap_list_lsub.rs"
[[test]]
name = "imap_mailbox_crud"
path = "tests/imap_mailbox_crud.rs"
[[test]]
name = "imap_search"
path = "tests/imap_search.rs"
[[test]]
name = "imap_search_extended"
path = "tests/imap_search_extended.rs"
[[test]]
name = "imap_search_unseen"
path = "tests/imap_search_unseen.rs"
[[test]]
name = "imap_starttls"
path = "tests/imap_starttls.rs"
[[test]]
name = "imap_store_answered_draft"
path = "tests/imap_store_answered_draft.rs"
[[test]]
name = "imap_store_seen"
path = "tests/imap_store_seen.rs"
[[test]]
name = "imap_uid_fetch"
path = "tests/imap_uid_fetch.rs"
[[test]]
name = "imap_uid_store"
path = "tests/imap_uid_store.rs"
[[test]]
name = "imap_uidplus"
path = "tests/imap_uidplus.rs"
[[test]]
name = "preload_filesystem"
path = "tests/preload_filesystem.rs"
[[test]]
name = "procedere_integration"
path = "tests/procedere_integration.rs"
[[test]]
name = "rfc9051_compliance"
path = "tests/rfc9051_compliance.rs"
[[test]]
name = "smtp_starttls"
path = "tests/smtp_starttls.rs"
[[test]]
name = "sqlite_persistence"
path = "tests/sqlite_persistence.rs"
[[test]]
name = "walking_skeleton"
path = "tests/walking_skeleton.rs"
[dependencies.axum]
version = "0.7"
[dependencies.base64]
version = "0.22"
[dependencies.rcgen]
version = "0.13"
[dependencies.rusqlite]
version = "0.34"
features = ["bundled"]
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"std",
"tls12",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.time]
version = "=0.3.45"
features = ["formatting"]
[dependencies.tokio]
version = "1"
features = [
"net",
"io-util",
"rt-multi-thread",
"macros",
"sync",
"time",
"signal",
]
[dependencies.tokio-rustls]
version = "0.26"
[dev-dependencies.regex]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.webpki-roots]
version = "0.26"
[lints.clippy]
branches_sharing_code = "allow"
collapsible_if = "allow"
default_trait_access = "allow"
doc_lazy_continuation = "allow"
doc_markdown = "allow"
field_reassign_with_default = "allow"
io_other_error = "allow"
large_enum_variant = "allow"
len_zero = "allow"
manual_strip = "allow"
map_clone = "allow"
map_unwrap_or = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
option_if_let_else = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_pub_crate = "allow"
single_char_pattern = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnested_or_patterns = "allow"
use_self = "allow"
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
[lints.rustdoc]
broken_intra_doc_links = "deny"
[profile.release]
lto = "thin"
codegen-units = 16
strip = true