[package]
name = "objc2-screen-time"
version.workspace = true
description = "Bindings to the ScreenTime framework"
edition.workspace = true
rust-version.workspace = true
keywords = ["cocoa", "apple", "framework", "macos", "ios"]
categories.workspace = true
repository.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
block2 = { workspace = true, optional = true, features = ["alloc"] }
dispatch2 = { workspace = true, optional = true, features = [
"alloc",
"objc2",
] }
objc2 = { workspace = true, features = ["std"] }
objc2-foundation = { workspace = true, features = ["alloc"] }
[target.'cfg(target_os = "macos")'.dependencies]
objc2-app-kit = { workspace = true, optional = true, features = [
"NSKeyValueBinding",
"NSResponder",
"NSStoryboardSegue",
"NSUserInterfaceItemIdentification",
"NSViewController",
] }
[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
rustc-args = ["--cfg", "docsrs"]
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"aarch64-apple-ios",
"aarch64-apple-ios-macabi",
]
[features]
default = [
"std",
"STScreenTimeConfiguration",
"STWebHistory",
"STWebpageController",
"block2",
"dispatch2",
"objc2-app-kit",
]
std = ["alloc"]
alloc = []
block2 = ["dep:block2"]
dispatch2 = ["dep:dispatch2"]
objc2-app-kit = ["dep:objc2-app-kit"]
unstable-darwin-objc = []
STScreenTimeConfiguration = []
STWebHistory = [
"objc2-foundation/NSDateInterval",
"objc2-foundation/NSError",
"objc2-foundation/NSSet",
"objc2-foundation/NSString",
"objc2-foundation/NSURL",
]
STWebpageController = [
"objc2-foundation/NSBundle",
"objc2-foundation/NSCoder",
"objc2-foundation/NSError",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
"objc2-foundation/NSURL",
]