500 lines
11 KiB
TOML
500 lines
11 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
rust-version = "1.60"
|
|
name = "objc2-foundation"
|
|
version = "0.2.2"
|
|
build = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Bindings to the Foundation framework"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"cocoa",
|
|
"apple",
|
|
"framework",
|
|
"macos",
|
|
"ios",
|
|
]
|
|
categories = [
|
|
"api-bindings",
|
|
"development-tools::ffi",
|
|
"external-ffi-bindings",
|
|
"os::macos-apis",
|
|
]
|
|
license = "MIT"
|
|
repository = "https://github.com/madsmtm/objc2"
|
|
|
|
[package.metadata.docs.rs]
|
|
default-target = "aarch64-apple-darwin"
|
|
features = [
|
|
"dispatch",
|
|
"all",
|
|
]
|
|
targets = [
|
|
"aarch64-apple-darwin",
|
|
"x86_64-apple-darwin",
|
|
"aarch64-apple-ios",
|
|
"aarch64-apple-tvos",
|
|
"aarch64-apple-watchos",
|
|
"aarch64-apple-ios-macabi",
|
|
"x86_64-unknown-linux-gnu",
|
|
"i686-unknown-linux-gnu",
|
|
]
|
|
|
|
[lib]
|
|
name = "objc2_foundation"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "basic_usage"
|
|
path = "examples/basic_usage.rs"
|
|
required-features = [
|
|
"NSArray",
|
|
"NSDictionary",
|
|
"NSEnumerator",
|
|
"NSRange",
|
|
"NSObject",
|
|
]
|
|
|
|
[[example]]
|
|
name = "speech_synthesis"
|
|
path = "examples/speech_synthesis.rs"
|
|
required-features = [
|
|
"NSString",
|
|
"NSObject",
|
|
]
|
|
|
|
[dependencies.bitflags]
|
|
version = "2.5.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.block2]
|
|
version = "0.5.1"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.dispatch]
|
|
version = "0.2.0"
|
|
optional = true
|
|
|
|
[dependencies.libc]
|
|
version = "0.2.80"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.objc2]
|
|
version = "0.5.2"
|
|
default-features = false
|
|
|
|
[dev-dependencies.static_assertions]
|
|
version = "1.1.0"
|
|
|
|
[features]
|
|
FoundationErrors = []
|
|
FoundationLegacySwiftCompatibility = []
|
|
NSAffineTransform = []
|
|
NSAppleEventDescriptor = ["bitflags"]
|
|
NSAppleEventManager = []
|
|
NSAppleScript = []
|
|
NSArchiver = []
|
|
NSArray = ["bitflags"]
|
|
NSAttributedString = ["bitflags"]
|
|
NSAutoreleasePool = []
|
|
NSBackgroundActivityScheduler = []
|
|
NSBundle = []
|
|
NSByteCountFormatter = ["bitflags"]
|
|
NSByteOrder = []
|
|
NSCache = []
|
|
NSCalendar = ["bitflags"]
|
|
NSCalendarDate = []
|
|
NSCharacterSet = []
|
|
NSClassDescription = []
|
|
NSCoder = []
|
|
NSComparisonPredicate = ["bitflags"]
|
|
NSCompoundPredicate = []
|
|
NSConnection = []
|
|
NSData = ["bitflags"]
|
|
NSDate = []
|
|
NSDateComponentsFormatter = ["bitflags"]
|
|
NSDateFormatter = []
|
|
NSDateInterval = []
|
|
NSDateIntervalFormatter = []
|
|
NSDecimal = []
|
|
NSDecimalNumber = []
|
|
NSDictionary = []
|
|
NSDistantObject = []
|
|
NSDistributedLock = []
|
|
NSDistributedNotificationCenter = ["bitflags"]
|
|
NSEnergyFormatter = []
|
|
NSEnumerator = []
|
|
NSError = []
|
|
NSException = []
|
|
NSExpression = []
|
|
NSExtensionContext = []
|
|
NSExtensionItem = []
|
|
NSExtensionRequestHandling = []
|
|
NSFileCoordinator = ["bitflags"]
|
|
NSFileHandle = []
|
|
NSFileManager = ["bitflags"]
|
|
NSFilePresenter = []
|
|
NSFileVersion = ["bitflags"]
|
|
NSFileWrapper = ["bitflags"]
|
|
NSFormatter = []
|
|
NSGarbageCollector = []
|
|
NSGeometry = ["bitflags"]
|
|
NSHFSFileTypes = []
|
|
NSHTTPCookie = []
|
|
NSHTTPCookieStorage = []
|
|
NSHashTable = []
|
|
NSHost = []
|
|
NSISO8601DateFormatter = ["bitflags"]
|
|
NSIndexPath = []
|
|
NSIndexSet = []
|
|
NSInflectionRule = []
|
|
NSInvocation = []
|
|
NSItemProvider = ["bitflags"]
|
|
NSJSONSerialization = ["bitflags"]
|
|
NSKeyValueCoding = []
|
|
NSKeyValueObserving = ["bitflags"]
|
|
NSKeyedArchiver = []
|
|
NSLengthFormatter = []
|
|
NSLinguisticTagger = ["bitflags"]
|
|
NSListFormatter = []
|
|
NSLocale = []
|
|
NSLock = []
|
|
NSMapTable = []
|
|
NSMassFormatter = []
|
|
NSMeasurement = []
|
|
NSMeasurementFormatter = ["bitflags"]
|
|
NSMetadata = []
|
|
NSMetadataAttributes = []
|
|
NSMethodSignature = []
|
|
NSMorphology = []
|
|
NSNetServices = ["bitflags"]
|
|
NSNotification = []
|
|
NSNotificationQueue = ["bitflags"]
|
|
NSNull = []
|
|
NSNumberFormatter = []
|
|
NSObjCRuntime = ["bitflags"]
|
|
NSObject = []
|
|
NSObjectScripting = []
|
|
NSOperation = []
|
|
NSOrderedCollectionChange = []
|
|
NSOrderedCollectionDifference = ["bitflags"]
|
|
NSOrderedSet = []
|
|
NSOrthography = []
|
|
NSPathUtilities = ["bitflags"]
|
|
NSPersonNameComponents = []
|
|
NSPersonNameComponentsFormatter = ["bitflags"]
|
|
NSPointerArray = []
|
|
NSPointerFunctions = ["bitflags"]
|
|
NSPort = ["bitflags"]
|
|
NSPortCoder = []
|
|
NSPortMessage = []
|
|
NSPortNameServer = []
|
|
NSPredicate = []
|
|
NSProcessInfo = ["bitflags"]
|
|
NSProgress = []
|
|
NSPropertyList = ["bitflags"]
|
|
NSProtocolChecker = []
|
|
NSProxy = []
|
|
NSRange = []
|
|
NSRegularExpression = ["bitflags"]
|
|
NSRelativeDateTimeFormatter = []
|
|
NSRunLoop = []
|
|
NSScanner = []
|
|
NSScriptClassDescription = []
|
|
NSScriptCoercionHandler = []
|
|
NSScriptCommand = []
|
|
NSScriptCommandDescription = []
|
|
NSScriptExecutionContext = []
|
|
NSScriptKeyValueCoding = []
|
|
NSScriptObjectSpecifiers = []
|
|
NSScriptStandardSuiteCommands = []
|
|
NSScriptSuiteRegistry = []
|
|
NSScriptWhoseTests = []
|
|
NSSet = []
|
|
NSSortDescriptor = []
|
|
NSSpellServer = []
|
|
NSStream = ["bitflags"]
|
|
NSString = ["bitflags"]
|
|
NSTask = []
|
|
NSTermOfAddress = []
|
|
NSTextCheckingResult = ["bitflags"]
|
|
NSThread = []
|
|
NSTimeZone = []
|
|
NSTimer = []
|
|
NSURL = ["bitflags"]
|
|
NSURLAuthenticationChallenge = []
|
|
NSURLCache = []
|
|
NSURLConnection = []
|
|
NSURLCredential = []
|
|
NSURLCredentialStorage = []
|
|
NSURLDownload = []
|
|
NSURLError = []
|
|
NSURLHandle = []
|
|
NSURLProtectionSpace = []
|
|
NSURLProtocol = []
|
|
NSURLRequest = []
|
|
NSURLResponse = []
|
|
NSURLSession = []
|
|
NSUUID = []
|
|
NSUbiquitousKeyValueStore = []
|
|
NSUndoManager = []
|
|
NSUnit = []
|
|
NSUserActivity = []
|
|
NSUserDefaults = []
|
|
NSUserNotification = []
|
|
NSUserScriptTask = []
|
|
NSValue = []
|
|
NSValueTransformer = []
|
|
NSXMLDTD = []
|
|
NSXMLDTDNode = []
|
|
NSXMLDocument = []
|
|
NSXMLElement = []
|
|
NSXMLNode = []
|
|
NSXMLNodeOptions = ["bitflags"]
|
|
NSXMLParser = []
|
|
NSXPCConnection = ["bitflags"]
|
|
NSZone = []
|
|
all = [
|
|
"FoundationErrors",
|
|
"FoundationLegacySwiftCompatibility",
|
|
"NSAffineTransform",
|
|
"NSAppleEventDescriptor",
|
|
"NSAppleEventManager",
|
|
"NSAppleScript",
|
|
"NSArchiver",
|
|
"NSArray",
|
|
"NSAttributedString",
|
|
"NSAutoreleasePool",
|
|
"NSBackgroundActivityScheduler",
|
|
"NSBundle",
|
|
"NSByteCountFormatter",
|
|
"NSByteOrder",
|
|
"NSCache",
|
|
"NSCalendar",
|
|
"NSCalendarDate",
|
|
"NSCharacterSet",
|
|
"NSClassDescription",
|
|
"NSCoder",
|
|
"NSComparisonPredicate",
|
|
"NSCompoundPredicate",
|
|
"NSConnection",
|
|
"NSData",
|
|
"NSDate",
|
|
"NSDateComponentsFormatter",
|
|
"NSDateFormatter",
|
|
"NSDateInterval",
|
|
"NSDateIntervalFormatter",
|
|
"NSDecimal",
|
|
"NSDecimalNumber",
|
|
"NSDictionary",
|
|
"NSDistantObject",
|
|
"NSDistributedLock",
|
|
"NSDistributedNotificationCenter",
|
|
"NSEnergyFormatter",
|
|
"NSEnumerator",
|
|
"NSError",
|
|
"NSException",
|
|
"NSExpression",
|
|
"NSExtensionContext",
|
|
"NSExtensionItem",
|
|
"NSExtensionRequestHandling",
|
|
"NSFileCoordinator",
|
|
"NSFileHandle",
|
|
"NSFileManager",
|
|
"NSFilePresenter",
|
|
"NSFileVersion",
|
|
"NSFileWrapper",
|
|
"NSFormatter",
|
|
"NSGarbageCollector",
|
|
"NSGeometry",
|
|
"NSHFSFileTypes",
|
|
"NSHTTPCookie",
|
|
"NSHTTPCookieStorage",
|
|
"NSHashTable",
|
|
"NSHost",
|
|
"NSISO8601DateFormatter",
|
|
"NSIndexPath",
|
|
"NSIndexSet",
|
|
"NSInflectionRule",
|
|
"NSInvocation",
|
|
"NSItemProvider",
|
|
"NSJSONSerialization",
|
|
"NSKeyValueCoding",
|
|
"NSKeyValueObserving",
|
|
"NSKeyedArchiver",
|
|
"NSLengthFormatter",
|
|
"NSLinguisticTagger",
|
|
"NSListFormatter",
|
|
"NSLocale",
|
|
"NSLock",
|
|
"NSMapTable",
|
|
"NSMassFormatter",
|
|
"NSMeasurement",
|
|
"NSMeasurementFormatter",
|
|
"NSMetadata",
|
|
"NSMetadataAttributes",
|
|
"NSMethodSignature",
|
|
"NSMorphology",
|
|
"NSNetServices",
|
|
"NSNotification",
|
|
"NSNotificationQueue",
|
|
"NSNull",
|
|
"NSNumberFormatter",
|
|
"NSObjCRuntime",
|
|
"NSObject",
|
|
"NSObjectScripting",
|
|
"NSOperation",
|
|
"NSOrderedCollectionChange",
|
|
"NSOrderedCollectionDifference",
|
|
"NSOrderedSet",
|
|
"NSOrthography",
|
|
"NSPathUtilities",
|
|
"NSPersonNameComponents",
|
|
"NSPersonNameComponentsFormatter",
|
|
"NSPointerArray",
|
|
"NSPointerFunctions",
|
|
"NSPort",
|
|
"NSPortCoder",
|
|
"NSPortMessage",
|
|
"NSPortNameServer",
|
|
"NSPredicate",
|
|
"NSProcessInfo",
|
|
"NSProgress",
|
|
"NSPropertyList",
|
|
"NSProtocolChecker",
|
|
"NSProxy",
|
|
"NSRange",
|
|
"NSRegularExpression",
|
|
"NSRelativeDateTimeFormatter",
|
|
"NSRunLoop",
|
|
"NSScanner",
|
|
"NSScriptClassDescription",
|
|
"NSScriptCoercionHandler",
|
|
"NSScriptCommand",
|
|
"NSScriptCommandDescription",
|
|
"NSScriptExecutionContext",
|
|
"NSScriptKeyValueCoding",
|
|
"NSScriptObjectSpecifiers",
|
|
"NSScriptStandardSuiteCommands",
|
|
"NSScriptSuiteRegistry",
|
|
"NSScriptWhoseTests",
|
|
"NSSet",
|
|
"NSSortDescriptor",
|
|
"NSSpellServer",
|
|
"NSStream",
|
|
"NSString",
|
|
"NSTask",
|
|
"NSTermOfAddress",
|
|
"NSTextCheckingResult",
|
|
"NSThread",
|
|
"NSTimeZone",
|
|
"NSTimer",
|
|
"NSURL",
|
|
"NSURLAuthenticationChallenge",
|
|
"NSURLCache",
|
|
"NSURLConnection",
|
|
"NSURLCredential",
|
|
"NSURLCredentialStorage",
|
|
"NSURLDownload",
|
|
"NSURLError",
|
|
"NSURLHandle",
|
|
"NSURLProtectionSpace",
|
|
"NSURLProtocol",
|
|
"NSURLRequest",
|
|
"NSURLResponse",
|
|
"NSURLSession",
|
|
"NSUUID",
|
|
"NSUbiquitousKeyValueStore",
|
|
"NSUndoManager",
|
|
"NSUnit",
|
|
"NSUserActivity",
|
|
"NSUserDefaults",
|
|
"NSUserNotification",
|
|
"NSUserScriptTask",
|
|
"NSValue",
|
|
"NSValueTransformer",
|
|
"NSXMLDTD",
|
|
"NSXMLDTDNode",
|
|
"NSXMLDocument",
|
|
"NSXMLElement",
|
|
"NSXMLNode",
|
|
"NSXMLNodeOptions",
|
|
"NSXMLParser",
|
|
"NSXPCConnection",
|
|
"NSZone",
|
|
"bitflags",
|
|
"block2",
|
|
"libc",
|
|
]
|
|
alloc = [
|
|
"block2?/alloc",
|
|
"objc2/alloc",
|
|
]
|
|
apple = []
|
|
bitflags = ["dep:bitflags"]
|
|
block2 = ["dep:block2"]
|
|
default = ["std"]
|
|
dispatch = ["dep:dispatch"]
|
|
gnustep-1-7 = [
|
|
"objc2/gnustep-1-7",
|
|
"block2?/gnustep-1-7",
|
|
]
|
|
gnustep-1-8 = [
|
|
"gnustep-1-7",
|
|
"objc2/gnustep-1-8",
|
|
"block2?/gnustep-1-8",
|
|
]
|
|
gnustep-1-9 = [
|
|
"gnustep-1-8",
|
|
"objc2/gnustep-1-9",
|
|
"block2?/gnustep-1-9",
|
|
]
|
|
gnustep-2-0 = [
|
|
"gnustep-1-9",
|
|
"objc2/gnustep-2-0",
|
|
"block2?/gnustep-2-0",
|
|
]
|
|
gnustep-2-1 = [
|
|
"gnustep-2-0",
|
|
"objc2/gnustep-2-1",
|
|
"block2?/gnustep-2-1",
|
|
]
|
|
libc = ["dep:libc"]
|
|
std = [
|
|
"alloc",
|
|
"bitflags?/std",
|
|
"block2?/std",
|
|
"libc?/std",
|
|
"objc2/std",
|
|
]
|
|
unstable-static-nsstring = []
|
|
|
|
[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"
|