# 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 = "pdfkit-rs"
version = "0.2.4"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "examples/**/*",
    "tests/**/*",
    "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 PDFKit framework — documents, pages, selections, outlines, annotations, destinations, actions, and view state on macOS"
homepage = "https://github.com/doom-fish/pdfkit-rs"
readme = "README.md"
keywords = [
    "pdf",
    "pdfkit",
    "macos",
    "apple",
    "document",
]
categories = [
    "api-bindings",
    "graphics",
    "os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/pdfkit-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 = "pdfkit"
crate-type = ["lib"]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

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

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

[[example]]
name = "11_destination_compare"
path = "examples/11_destination_compare.rs"

[[example]]
name = "12_appearance_characteristics"
path = "examples/12_appearance_characteristics.rs"

[[example]]
name = "13_accessibility_node_status"
path = "examples/13_accessibility_node_status.rs"

[[example]]
name = "14_action_named_remote_goto"
path = "examples/14_action_named_remote_goto.rs"

[[example]]
name = "15_document_delegate_write_options"
path = "examples/15_document_delegate_write_options.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.libc]
version = "0.2"

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

[dependencies.serde_json]
version = "1"

[dev-dependencies.regex-lite]
version = "0.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"
