[package]
edition = "2021"
rust-version = "1.70"
name = "apple-cf"
version = "0.2.0"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"swift-bridge/Package.swift",
"swift-bridge/Sources/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE-*",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's shared Core* frameworks (CoreGraphics, IOSurface, Dispatch). The foundation underneath the doom-fish macOS crates."
homepage = "https://github.com/doom-fish/apple-cf-rs"
readme = "README.md"
keywords = [
"coregraphics",
"iosurface",
"dispatch",
"macos",
"apple",
]
categories = [
"api-bindings",
"os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/apple-cf-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"
[features]
all-frameworks = [
"cg",
"iosurface",
"dispatch",
"cm",
"cv",
]
cg = []
cm = []
cv = ["iosurface"]
default = [
"cg",
"iosurface",
"dispatch",
"cm",
"cv",
]
dispatch = []
iosurface = []
metal = []
[lib]
name = "apple_cf"
crate-type = ["lib"]
path = "src/lib.rs"
[dependencies]
[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