[dependencies.cocoa]
version = "0.25"
[dependencies.core-foundation]
version = "0.9"
[dependencies.core-graphics]
version = "0.23"
[dependencies.dispatch]
version = "0.2"
[dependencies.futures]
version = "0.3"
[dependencies.libc]
version = "0.2"
[dependencies.objc]
version = "0.2"
[dependencies.proc-macro2]
version = "1.0"
[dependencies.quote]
version = "1.0"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dependencies.syn]
features = ["full"]
version = "2.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
features = ["full"]
version = "1.0"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.insta]
version = "1.39"
[[example]]
name = "basic_window"
path = "examples/basic_window.rs"
[[example]]
name = "comprehensive_components"
path = "examples/comprehensive_components.rs"
[[example]]
name = "menu_app"
path = "examples/menu_app.rs"
[[example]]
name = "modern_features"
path = "examples/modern_features.rs"
[[example]]
name = "simplified_api"
path = "examples/simplified_api.rs"
[features]
default = []
test-mock = []
[lib]
name = "cocoanut"
path = "src/lib.rs"
[package]
authors = ["Ying Kit WONG"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["gui", "os::macos-apis"]
description = "A Rust wrapper for Cocoa to develop macOS-specific GUI applications"
edition = "2024"
keywords = ["cocoa", "macos", "gui", "native", "appkit"]
license = "Apache-2.0"
name = "cocoanut"
readme = "README.md"
repository = "https://github.com/yingkitw/cocoanut"
version = "0.1.0"
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
panic = "abort"
strip = true
[[test]]
name = "async_tests_simple"
path = "tests/async_tests_simple.rs"
required-features = ["test-mock"]
[[test]]
name = "component_tests"
path = "tests/component_tests.rs"
required-features = ["test-mock"]
[[test]]
name = "control_tests_simple"
path = "tests/control_tests_simple.rs"
required-features = ["test-mock"]
[[test]]
name = "drawing_tests_simple"
path = "tests/drawing_tests_simple.rs"
required-features = ["test-mock"]
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
required-features = ["test-mock"]
[[test]]
name = "macos_integration_tests_simple"
path = "tests/macos_integration_tests_simple.rs"
required-features = ["test-mock"]
[[test]]
name = "streaming_tests_simple"
path = "tests/streaming_tests_simple.rs"
required-features = ["test-mock"]
[[test]]
name = "window_tests"
path = "tests/window_tests.rs"
required-features = ["test-mock"]
[[test]]
name = "zero_cost_tests_simple"
path = "tests/zero_cost_tests_simple.rs"
required-features = ["test-mock"]