Cargo Features

[dependencies]
objc2-input-method-kit = { version = "0.2.0", default-features = false, features = ["std", "alloc", "unstable-docsrs", "all", "objc2-app-kit", "IMKCandidates", "IMKInputController", "IMKServer"] }
default = std

The std feature is set by default whenever objc2-input-method-kit is added without default-features = false somewhere in the dependency tree.

std default = alloc

Currently not possible to turn off, put here for forwards compatibility.

Enables std of objc2

alloc std

Enables alloc of objc2

unstable-docsrs

For better documentation on docs.rs

all = IMKCandidates, IMKInputController, IMKServer, objc2-app-kit
objc2-app-kit all?

Enables objc2-app-kit

IMKCandidates all?

Enables NSArray, NSAttributedString, NSCoder, NSDictionary, NSGeometry and NSObject of objc2-foundation, NSResponder of optional objc2-app-kit

Affects objc2-input-method-kit::IMKCandidatesOpacityAttributeName, objc2-input-method-kit::IMKCandidatesSendServerKeyEventFirst

IMKInputController all?

Enables NSArray, NSAttributedString, NSDictionary, NSGeometry, NSRange and NSString of objc2-foundation, NSEvent and NSMenu of optional objc2-app-kit

Affects objc2-input-method-kit::kIMKCommandMenuItemName, objc2-input-method-kit::kIMKCommandClientName

IMKServer all?

Enables NSBundle and NSString of objc2-foundation

Affects objc2-input-method-kit::IMKModeDictionary, objc2-input-method-kit::IMKControllerClass, objc2-input-method-kit::IMKDelegateClass