Cargo Features

[dependencies]
objc2-core-ml = { version = "0.3.0", default-features = false, features = ["std", "alloc", "bitflags", "block2", "objc2-core-graphics", "objc2-core-video", "objc2-metal", "MLAllComputeDevices", "MLArrayBatchProvider", "MLCPUComputeDevice", "MLComputeDeviceProtocol", "MLComputePlan", "MLComputePlanCost", "MLComputePlanDeviceUsage", "MLCustomLayer", "MLCustomModel", "MLDictionaryConstraint", "MLDictionaryFeatureProvider", "MLExport", "MLFeatureDescription", "MLFeatureProvider", "MLFeatureType", "MLFeatureValue", "MLFeatureValue_MLImageConversion", "MLGPUComputeDevice", "MLImageSize", "MLImageSizeConstraint", "MLImageSizeConstraintType", "MLKey", "MLMetricKey", "MLModel", "MLModelAsset", "MLModelCollection", "MLModelCollectionEntry", "MLModelConfiguration", "MLModelDescription", "MLModelMetadataKeys", "MLModelStructure", "MLModelStructureNeuralNetwork", "MLModelStructurePipeline", "MLModelStructureProgram", "MLModelStructureProgramArgument", "MLModelStructureProgramBinding", "MLModelStructureProgramBlock", "MLModelStructureProgramFunction", "MLModelStructureProgramNamedValueType", "MLModelStructureProgramOperation", "MLModelStructureProgramValueType", "MLModel_MLComputeDevice", "MLModel_MLModelCompilation", "MLModel_MLState", "MLMultiArray", "MLMultiArrayShapeConstraint", "MLNeuralEngineComputeDevice", "MLNumericConstraint", "MLParameterDescription", "MLParameterKey", "MLPredictionOptions", "MLReshapeFrequencyHint", "MLSequence", "MLSequenceConstraint", "MLSpecializationStrategy", "MLState", "MLStateConstraint", "MLTask", "MLUpdateContext", "MLUpdateProgressEvent", "MLUpdateProgressHandlers", "MLUpdateTask", "MLWritable"] }
default = MLAllComputeDevices, MLArrayBatchProvider, MLBatchProvider, MLCPUComputeDevice, MLComputeDeviceProtocol, MLComputePlan, MLComputePlanCost, MLComputePlanDeviceUsage, MLCustomLayer, MLCustomModel, MLDictionaryConstraint, MLDictionaryFeatureProvider, MLExport, MLFeatureDescription, MLFeatureProvider, MLFeatureType, MLFeatureValue, MLFeatureValue_MLImageConversion, MLGPUComputeDevice, MLImageConstraint, MLImageSize, MLImageSizeConstraint, MLImageSizeConstraintType, MLKey, MLMetricKey, MLModel, MLModelAsset, MLModelCollection, MLModelCollectionEntry, MLModelConfiguration, MLModelDescription, MLModelError, MLModelMetadataKeys, MLModelStructure, MLModelStructureNeuralNetwork, MLModelStructureNeuralNetworkLayer, MLModelStructurePipeline, MLModelStructureProgram, MLModelStructureProgramArgument, MLModelStructureProgramBinding, MLModelStructureProgramBlock, MLModelStructureProgramFunction, MLModelStructureProgramNamedValueType, MLModelStructureProgramOperation, MLModelStructureProgramValue, MLModelStructureProgramValueType, MLModel_MLComputeDevice, MLModel_MLModelCompilation, MLModel_MLState, MLMultiArray, MLMultiArrayConstraint, MLMultiArrayShapeConstraint, MLMultiArrayShapeConstraintType, MLNeuralEngineComputeDevice, MLNumericConstraint, MLOptimizationHints, MLParameterDescription, MLParameterKey, MLPredictionOptions, MLReshapeFrequencyHint, MLSequence, MLSequenceConstraint, MLSpecializationStrategy, MLState, MLStateConstraint, MLTask, MLUpdateContext, MLUpdateProgressEvent, MLUpdateProgressHandlers, MLUpdateTask, MLWritable, bitflags, block2, objc2-core-graphics, objc2-core-video, objc2-metal, std

These default features are set whenever objc2-core-ml is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std
bitflags default MLUpdateProgressEvent

Enables bitflags

block2 default

Enables block2

objc2-core-graphics default

Enables objc2-core-graphics

objc2-core-video default

Enables objc2-core-video

objc2-metal default

Enables objc2-metal

MLAllComputeDevices default

Enables NSArray of objc2-foundation

MLArrayBatchProvider default

Enables NSArray, NSDictionary, NSError and NSString of objc2-foundation

MLBatchProvider MLCPUComputeDevice default
MLComputeDeviceProtocol default

Affects MLAllComputeDevices::MLAllComputeDevices

MLComputePlan default

Enables NSError and NSURL of objc2-foundation

MLComputePlanCost default
MLComputePlanDeviceUsage default

Enables NSArray of objc2-foundation

MLCustomLayer default

Enables NSArray, NSData, NSDictionary, NSError, NSString and NSValue of objc2-foundation

MLCustomModel default

Enables NSDictionary, NSError and NSString of objc2-foundation

MLDictionaryConstraint default

Enables NSObject of objc2-foundation

MLDictionaryFeatureProvider default

Enables NSDictionary, NSEnumerator, NSError, NSObject and NSString of objc2-foundation

MLExport default
MLFeatureDescription default

Enables NSObject and NSString of objc2-foundation

MLFeatureProvider default

Enables NSSet and NSString of objc2-foundation

MLFeatureType default
MLFeatureValue default

Enables NSDictionary, NSError, NSObject, NSString and NSValue of objc2-foundation

MLFeatureValue_MLImageConversion default

Enables NSDictionary, NSError, NSString and NSURL of objc2-foundation

MLGPUComputeDevice default
MLImageConstraint MLImageSize default

Enables NSObject of objc2-foundation

MLImageSizeConstraint default

Enables NSArray, NSObject and NSRange of objc2-foundation

MLImageSizeConstraintType default
MLKey default

Enables NSObject and NSString of objc2-foundation

MLMetricKey default

Enables NSObject of objc2-foundation

MLModel default

Enables NSError and NSURL of objc2-foundation

MLModelAsset default

Enables NSArray, NSData, NSDictionary, NSError, NSString and NSURL of objc2-foundation

MLModelCollection default

Enables NSDictionary, NSError, NSNotification, NSProgress and NSString of objc2-foundation

MLModelCollectionEntry default

Enables NSString and NSURL of objc2-foundation

MLModelConfiguration default

Enables NSDictionary, NSObject and NSString of objc2-foundation

MLModelDescription default

Enables NSArray, NSDictionary, NSObject and NSString of objc2-foundation

MLModelError MLModelMetadataKeys default

Enables NSString of objc2-foundation

MLModelStructure default

Enables NSError and NSURL of objc2-foundation

MLModelStructureNeuralNetwork default

Enables NSArray of objc2-foundation

MLModelStructureNeuralNetworkLayer MLModelStructurePipeline default

Enables NSArray and NSString of objc2-foundation

MLModelStructureProgram default

Enables NSDictionary and NSString of objc2-foundation

MLModelStructureProgramArgument default

Enables NSArray of objc2-foundation

MLModelStructureProgramBinding default

Enables NSString of objc2-foundation

MLModelStructureProgramBlock default

Enables NSArray and NSString of objc2-foundation

MLModelStructureProgramFunction default

Enables NSArray of objc2-foundation

MLModelStructureProgramNamedValueType default

Enables NSString of objc2-foundation

MLModelStructureProgramOperation default

Enables NSArray, NSDictionary and NSString of objc2-foundation

MLModelStructureProgramValue MLModelStructureProgramValueType default
MLModel_MLComputeDevice default

Enables NSArray of objc2-foundation

MLModel_MLModelCompilation default

Enables NSError and NSURL of objc2-foundation

MLModel_MLState default

Enables NSError of objc2-foundation

MLMultiArray default

Enables NSArray, NSError, NSObject and NSValue of objc2-foundation

MLMultiArrayConstraint MLMultiArrayShapeConstraint default

Enables NSArray, NSObject and NSValue of objc2-foundation

MLMultiArrayShapeConstraintType MLNeuralEngineComputeDevice default
MLNumericConstraint default

Enables NSObject, NSSet and NSValue of objc2-foundation

MLOptimizationHints MLParameterDescription default

Enables NSObject of objc2-foundation

MLParameterKey default

Enables NSObject and NSString of objc2-foundation

MLPredictionOptions default

Enables NSDictionary and NSString of objc2-foundation

MLReshapeFrequencyHint default
MLSequence default

Enables NSArray, NSObject, NSString and NSValue of objc2-foundation

MLSequenceConstraint default

Enables NSObject and NSRange of objc2-foundation

MLSpecializationStrategy default
MLState default

Enables NSString of objc2-foundation

MLStateConstraint default

Enables NSArray, NSObject and NSValue of objc2-foundation

MLTask default

Enables NSError and NSString of objc2-foundation

MLUpdateContext default

Enables NSDictionary of objc2-foundation

MLUpdateProgressEvent default = bitflags
MLUpdateProgressHandlers default
MLUpdateTask default

Enables NSDictionary, NSError and NSURL of objc2-foundation

MLWritable default

Enables NSError and NSURL of objc2-foundation