[package]
edition = "2021"
rust-version = "1.71"
name = "cocoa"
version = "0.27.0"
authors = ["The Servo Project Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bindings to Cocoa for macOS"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/servo/core-foundation-rs"
[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
[features]
default = ["link"]
link = [
"core-foundation/link",
"cocoa-foundation/link",
"core-graphics/link",
]
[lib]
name = "cocoa"
path = "src/lib.rs"
[[example]]
name = "color"
path = "examples/color.rs"
[[example]]
name = "fullscreen"
path = "examples/fullscreen.rs"
[[example]]
name = "hello_world"
path = "examples/hello_world.rs"
[[example]]
name = "nsvisualeffectview_blur"
path = "examples/nsvisualeffectview_blur.rs"
[[example]]
name = "tab_view"
path = "examples/tab_view.rs"
[dependencies.bitflags]
version = "2"
[dependencies.block]
version = "0.1"
[dependencies.cocoa-foundation]
version = "0.2"
default-features = false
[dependencies.core-foundation]
version = "0.10"
default-features = false
[dependencies.core-graphics]
version = "0.25"
default-features = false
[dependencies.foreign-types]
version = "0.5"
[dependencies.libc]
version = "0.2"
[dependencies.objc]
version = "0.2.3"
[lints.clippy]
assertions_on_constants = "allow"
doc_markdown = "warn"
len_without_is_empty = "allow"
manual_range_contains = "allow"
missing_safety_doc = "allow"
new_ret_no_self = "allow"
new_without_default = "allow"
non_canonical_partial_ord_impl = "allow"
not_unsafe_ptr_arg_deref = "allow"
result_unit_err = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("cargo-clippy"))']