Cargo Features

[dependencies]
objc2-data-detection = { version = "0.2.2", default-features = false, features = ["std", "alloc", "all", "DDMatch", "DataDetectionBase"] }
default = std

The std feature is set by default whenever objc2-data-detection 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 and objc2-foundation

alloc std

Enables alloc of objc2 and objc2-foundation

all = DDMatch, DataDetectionBase
DDMatch all?

Enables NSDate, NSString, NSTimeZone and NSURL of objc2-foundation

DataDetectionBase all?