# 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"
rust-version = "1.76"
name = "mailkit-rs"
version = "0.2.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "examples/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "LICENSE-*",
    "CHANGELOG.md",
    "COVERAGE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's MailKit framework on macOS"
homepage = "https://github.com/doom-fish/mailkit-rs"
readme = "README.md"
keywords = [
    "mailkit",
    "mail",
    "email",
    "apple",
    "macos",
]
categories = [
    "api-bindings",
    "os::macos-apis",
    "email",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/mailkit-rs"

[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "actively-developed"

[lib]
name = "mailkit"
crate-type = ["lib"]
path = "src/lib.rs"

[[example]]
name = "01_message_action_extension_decision"
path = "examples/01_message_action_extension_decision.rs"

[[example]]
name = "02_compose_session_handler_roundtrip"
path = "examples/02_compose_session_handler_roundtrip.rs"

[[example]]
name = "03_content_blocker_rules"
path = "examples/03_content_blocker_rules.rs"

[[example]]
name = "04_message_security_handler_roundtrip"
path = "examples/04_message_security_handler_roundtrip.rs"

[[example]]
name = "05_eml_attachment_parse"
path = "examples/05_eml_attachment_parse.rs"

[[example]]
name = "06_me_message_snapshot"
path = "examples/06_me_message_snapshot.rs"

[[example]]
name = "07_me_address_roundtrip"
path = "examples/07_me_address_roundtrip.rs"

[[example]]
name = "08_me_authentication_result_parse"
path = "examples/08_me_authentication_result_parse.rs"

[[example]]
name = "09_me_decoded_message_build"
path = "examples/09_me_decoded_message_build.rs"

[[example]]
name = "10_me_encoded_outgoing_message_build"
path = "examples/10_me_encoded_outgoing_message_build.rs"

[dependencies.libc]
version = "0.2"

[dependencies.mailparse]
version = "0.16.1"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]

[profile.release]
debug = 2
strip = "none"
