mail-parser 1.0.0

Fast and robust e-mail parsing library for Rust
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.98"
name = "mail-parser"
version = "1.0.0"
authors = ["Stalwart Labs <hello@stalw.art>"]
build = false
exclude = ["benches/compare"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast and robust e-mail parsing library for Rust"
homepage = "https://github.com/stalwartlabs/mail-parser"
readme = "README.md"
keywords = [
    "email",
    "mail",
    "parser",
    "parse",
    "mime",
]
categories = [
    "email",
    "parser-implementations",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/stalwartlabs/mail-parser"

[features]
default = []
full_encoding = ["dep:encoding_rs"]
serde = ["dep:serde"]

[lib]
name = "mail_parser"
path = "src/lib.rs"

[[example]]
name = "custom_parser"
path = "examples/custom_parser.rs"

[[example]]
name = "mailbox_iterate_maildir"
path = "examples/mailbox_iterate_maildir.rs"

[[example]]
name = "mailbox_parse_mbox"
path = "examples/mailbox_parse_mbox.rs"

[[example]]
name = "message_parse"
path = "examples/message_parse.rs"

[[example]]
name = "message_write_attachments"
path = "examples/message_write_attachments.rs"

[[test]]
name = "api"
path = "tests/api.rs"

[[test]]
name = "classification"
path = "tests/classification.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "issue_109"
path = "tests/issue_109.rs"

[[test]]
name = "issues"
path = "tests/issues.rs"

[[test]]
name = "review_fields"
path = "tests/review_fields.rs"

[[test]]
name = "review_structure"
path = "tests/review_structure.rs"

[[test]]
name = "structure"
path = "tests/structure.rs"

[[test]]
name = "text_prefix"
path = "tests/text_prefix.rs"

[[bench]]
name = "kernels"
path = "benches/kernels.rs"
harness = false

[[bench]]
name = "resolve"
path = "benches/resolve.rs"
harness = false

[[bench]]
name = "text_prefix"
path = "benches/text_prefix.rs"
harness = false

[dependencies.encodify]
version = "1.0"

[dependencies.encoding_rs]
version = "0.8"
optional = true

[dependencies.hashify]
version = "0.3"

[dependencies.memchr]
version = "2.8"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.simdutf8]
version = "0.1"

[dev-dependencies.chrono]
version = "0.4"

[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.serde_json]
version = "1.0"

[lints.clippy]
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(mail_parser_checked_str)"]

[profile.bench]
debug = 2