# 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 = "osakit-rs"
version = "0.2.3"
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",
    "tests/**/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's OSAKit framework — AppleScript and JavaScript for Automation on macOS"
homepage = "https://github.com/doom-fish/osakit-rs"
readme = "README.md"
keywords = [
    "osakit",
    "applescript",
    "automation",
    "jxa",
    "macos",
]
categories = [
    "api-bindings",
    "os::macos-apis",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/osakit-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 = "osakit"
crate-type = ["lib"]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bitflags]
version = "2"

[dependencies.libc]
version = "0.2"

[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"
