[dependencies.bitflags]
default-features = false
optional = true
version = "2.5.0"
[dependencies.block2]
default-features = false
optional = true
version = "0.5.1"
[dependencies.libc]
default-features = false
optional = true
version = "0.2.80"
[dependencies.objc2]
default-features = false
version = "0.5.2"
[dependencies.objc2-foundation]
default-features = false
version = "0.2.2"
[features]
SCContentSharingPicker = ["bitflags", "objc2-foundation/NSArray", "objc2-foundation/NSError", "objc2-foundation/NSString", "objc2-foundation/NSValue"]
SCError = ["objc2-foundation/NSString"]
SCScreenshotManager = []
SCShareableContent = ["objc2-foundation/NSArray", "objc2-foundation/NSError", "objc2-foundation/NSGeometry", "objc2-foundation/NSString"]
SCStream = ["objc2-foundation/NSArray", "objc2-foundation/NSError", "objc2-foundation/NSGeometry", "objc2-foundation/NSString"]
all = ["SCContentSharingPicker", "SCError", "SCScreenshotManager", "SCShareableContent", "SCStream", "bitflags", "block2", "libc"]
alloc = ["block2?/alloc", "objc2/alloc", "objc2-foundation/alloc"]
bitflags = ["dep:bitflags", "objc2-foundation/bitflags"]
block2 = ["dep:block2", "objc2-foundation/block2"]
default = ["std"]
libc = ["dep:libc", "objc2-foundation/libc"]
std = ["alloc", "bitflags?/std", "block2?/std", "libc?/std", "objc2/std", "objc2-foundation/std"]
[lib]
name = "objc2_screen_capture_kit"
path = "src/lib.rs"
[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"
[package]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["api-bindings", "development-tools::ffi", "external-ffi-bindings", "os::macos-apis"]
description = "Bindings to the ScreenCaptureKit framework"
edition = "2021"
keywords = ["cocoa", "apple", "framework", "macos"]
license = "MIT"
name = "objc2-screen-capture-kit"
readme = "README.md"
repository = "https://github.com/madsmtm/objc2"
rust-version = "1.60"
version = "0.2.2"
[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
features = ["all"]
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin"]