Cargo Features

[dependencies]
objc-sys = { version = "0.3.5", default-features = false, features = ["std", "alloc", "apple", "gnustep-1-7", "gnustep-1-8", "gnustep-1-9", "gnustep-2-0", "gnustep-2-1", "unstable-winobjc", "unstable-objfw", "unstable-c-unwind", "unstable-exception"] }
default = std

The std feature is set by default whenever objc-sys 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.

alloc std
apple

Deprecated; this is the default on Apple platforms, and not applicable on other platforms.

gnustep-1-7 gnustep-1-8?

Link to GNUStep's libobjc2

gnustep-1-8 gnustep-1-9? unstable-winobjc? = gnustep-1-7
gnustep-1-9 gnustep-2-0? = gnustep-1-8
gnustep-2-0 gnustep-2-1? = gnustep-1-9
gnustep-2-1 = gnustep-2-0
unstable-winobjc = gnustep-1-8

Link to Microsoft's libobjc2

unstable-objfw

Link to ObjFW

Affects exception::objc_uncaught_exception_handler

unstable-c-unwind

Use nightly c_unwind feature

unstable-exception = cc

Private

Affects exception::try_catch

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

cc build unstable-exception?