# 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.60"
name = "objc2-external-accessory"
version = "0.2.2"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bindings to the ExternalAccessory framework"
readme = "README.md"
keywords = [
    "cocoa",
    "apple",
    "framework",
    "macos",
    "ios",
]
categories = [
    "api-bindings",
    "development-tools::ffi",
    "external-ffi-bindings",
    "os::macos-apis",
]
license = "MIT"
repository = "https://github.com/madsmtm/objc2"

[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
features = ["all"]
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
    "aarch64-apple-ios",
    "aarch64-apple-tvos",
    "aarch64-apple-ios-macabi",
]

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

[dependencies.bitflags]
version = "2.5.0"
optional = true
default-features = false

[dependencies.block2]
version = "0.5.1"
optional = true
default-features = false

[dependencies.objc2]
version = "0.5.2"
default-features = false

[dependencies.objc2-foundation]
version = "0.2.2"
default-features = false

[features]
EAAccessory = [
    "objc2-foundation/NSArray",
    "objc2-foundation/NSString",
]
EAAccessoryManager = [
    "objc2-foundation/NSArray",
    "objc2-foundation/NSError",
    "objc2-foundation/NSPredicate",
    "objc2-foundation/NSString",
]
EASession = [
    "objc2-foundation/NSStream",
    "objc2-foundation/NSString",
]
EAWiFiUnconfiguredAccessory = [
    "bitflags",
    "objc2-foundation/NSString",
]
EAWiFiUnconfiguredAccessoryBrowser = [
    "objc2-foundation/NSPredicate",
    "objc2-foundation/NSSet",
]
ExternalAccessoryDefines = []
all = [
    "EAAccessory",
    "EAAccessoryManager",
    "EASession",
    "EAWiFiUnconfiguredAccessory",
    "EAWiFiUnconfiguredAccessoryBrowser",
    "ExternalAccessoryDefines",
    "bitflags",
    "block2",
]
alloc = [
    "block2?/alloc",
    "objc2/alloc",
    "objc2-foundation/alloc",
]
bitflags = [
    "dep:bitflags",
    "objc2-foundation/bitflags",
]
block2 = [
    "dep:block2",
    "objc2-foundation/block2",
]
default = ["std"]
std = [
    "alloc",
    "bitflags?/std",
    "block2?/std",
    "objc2/std",
    "objc2-foundation/std",
]

[lints.clippy]
cargo = "warn"
ptr_as_ptr = "warn"

[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
non_ascii_idents = "deny"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"