Revision control

Copy as Markdown

Other Tools

# 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 = "2021"
name = "mail-parser"
version = "0.9.4"
authors = ["Stalwart Labs <hello@stalw.art>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast and robust e-mail parsing library for Rust"
readme = "README.md"
keywords = [
"email",
"mail",
"parser",
"parse",
"mime",
]
categories = [
"email",
"parser-implementations",
]
license = "Apache-2.0 OR MIT"
resolver = "2"
[profile.bench]
debug = 2
[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 = "integration_test"
path = "tests/integration_test.rs"
[dependencies.encoding_rs]
version = "0.8"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dev-dependencies.bincode]
version = "1.3.3"
[dev-dependencies.chrono]
version = "0.4"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0"
[features]
default = ["full_encoding"]
full_encoding = ["encoding_rs"]
ludicrous_mode = []
serde_support = ["serde"]