[package]
edition = "2024"
rust-version = "1.92"
name = "email-message"
version = "0.8.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed outbound email message and address model"
homepage = "https://email-rs.dev"
readme = "README.md"
keywords = [
"email",
"mail",
"message",
"rfc5322",
]
categories = [
"data-structures",
"email",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sagikazarmark/email-rs"
[package.metadata.docs.rs]
all-features = true
[features]
arbitrary = ["dep:arbitrary"]
default = []
mime = []
rfc5322-string-compat = []
schemars = ["dep:schemars"]
serde = [
"dep:base64",
"dep:serde",
"time/serde",
]
[lib]
name = "email_message"
path = "src/lib.rs"
[[test]]
name = "arbitrary_feature"
path = "tests/arbitrary_feature.rs"
[[test]]
name = "list_constructors"
path = "tests/list_constructors.rs"
[[test]]
name = "parser_compat"
path = "tests/parser_compat.rs"
[[test]]
name = "property_roundtrip"
path = "tests/property_roundtrip.rs"
[[test]]
name = "property_validators"
path = "tests/property_validators.rs"
[[test]]
name = "rfc5322_corpus"
path = "tests/rfc5322_corpus.rs"
[[bench]]
name = "parsing"
path = "benches/parsing.rs"
harness = false
[dependencies.addr-spec]
version = "0.9"
features = ["literals"]
[dependencies.arbitrary]
version = "1"
features = ["derive"]
optional = true
[dependencies.base64]
version = "0.23"
optional = true
[dependencies.mail-parser]
version = "0.11"
[dependencies.schemars]
version = "1.2"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
default-features = false
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.time]
version = "0.3"
features = ["parsing"]
default-features = false
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"