Cargo Features

[dependencies]
objc2-core-ml = { version = "0.2.2", default-features = false, features = ["std", "alloc", "all", "bitflags", "block2", "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", "MLMultiArray", "MLMultiArrayShapeConstraint", "MLNeuralEngineComputeDevice", "MLNumericConstraint", "MLParameterDescription", "MLParameterKey", "MLPredictionOptions", "MLReshapeFrequencyHint", "MLSequence", "MLSequenceConstraint", "MLTask", "MLUpdateContext", "MLUpdateProgressEvent", "MLUpdateProgressHandlers", "MLUpdateTask", "MLWritable"] }
default = std

The std feature is set by default whenever objc2-core-ml 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 optional bitflags, optional block2, objc2, objc2-foundation, and optional objc2-metal

alloc std

Enables alloc of optional block2, objc2, objc2-foundation, and optional objc2-metal

all = 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, MLMultiArray, MLMultiArrayConstraint, MLMultiArrayShapeConstraint, MLMultiArrayShapeConstraintType, MLNeuralEngineComputeDevice, MLNumericConstraint, MLOptimizationHints, MLParameterDescription, MLParameterKey, MLPredictionOptions, MLReshapeFrequencyHint, MLSequence, MLSequenceConstraint, MLTask, MLUpdateContext, MLUpdateProgressEvent, MLUpdateProgressHandlers, MLUpdateTask, MLWritable, bitflags, block2, objc2-metal
bitflags MLUpdateProgressEvent? all?

Enables bitflags, bitflags of objc2-foundation and optional objc2-metal

block2 all?

Enables block2, block2 of objc2-foundation and optional objc2-metal

objc2-metal all?

Enables objc2-metal

MLAllComputeDevices all?

Enables NSArray of objc2-foundation

MLArrayBatchProvider all?

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

MLBatchProvider MLCPUComputeDevice all?
MLComputeDeviceProtocol all?

Affects MLAllComputeDevices::MLAllComputeDevices

MLComputePlan all?

Enables NSError and NSURL of objc2-foundation

MLComputePlanCost all?
MLComputePlanDeviceUsage all?

Enables NSArray of objc2-foundation

MLCustomLayer all?

Enables NSArray, NSData, NSDictionary, NSError, NSString and NSValue of objc2-foundation, MTLCommandBuffer, MTLResource and MTLTexture of optional objc2-metal

MLCustomModel all?

Enables NSDictionary, NSError and NSString of objc2-foundation

MLDictionaryConstraint all?

Enables NSObject of objc2-foundation

MLDictionaryFeatureProvider all?

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

MLExport all?
MLFeatureDescription all?

Enables NSObject and NSString of objc2-foundation

MLFeatureProvider all?

Enables NSSet and NSString of objc2-foundation

MLFeatureType all?
MLFeatureValue all?

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

MLFeatureValue_MLImageConversion all?

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

MLGPUComputeDevice all?

Enables MTLDevice of optional objc2-metal

MLImageConstraint MLImageSize all?

Enables NSObject of objc2-foundation

MLImageSizeConstraint all?

Enables NSArray, NSObject and NSRange of objc2-foundation

MLImageSizeConstraintType all?
MLKey all?

Enables NSObject and NSString of objc2-foundation

MLMetricKey all?

Enables NSObject of objc2-foundation

MLModel all?

Enables NSError and NSURL of objc2-foundation

MLModelAsset all?

Enables NSData and NSError of objc2-foundation

MLModelCollection all?

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

MLModelCollectionEntry all?

Enables NSString and NSURL of objc2-foundation

MLModelConfiguration all?

Enables NSDictionary, NSObject and NSString of objc2-foundation, MTLDevice of optional objc2-metal

MLModelDescription all?

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

MLModelError MLModelMetadataKeys all?

Enables NSString of objc2-foundation

MLModelStructure all?

Enables NSError and NSURL of objc2-foundation

MLModelStructureNeuralNetwork all?

Enables NSArray of objc2-foundation

MLModelStructureNeuralNetworkLayer MLModelStructurePipeline all?

Enables NSArray and NSString of objc2-foundation

MLModelStructureProgram all?

Enables NSDictionary and NSString of objc2-foundation

MLModelStructureProgramArgument all?

Enables NSArray of objc2-foundation

MLModelStructureProgramBinding all?

Enables NSString of objc2-foundation

MLModelStructureProgramBlock all?

Enables NSArray and NSString of objc2-foundation

MLModelStructureProgramFunction all?

Enables NSArray of objc2-foundation

MLModelStructureProgramNamedValueType all?

Enables NSString of objc2-foundation

MLModelStructureProgramOperation all?

Enables NSArray, NSDictionary and NSString of objc2-foundation

MLModelStructureProgramValue MLModelStructureProgramValueType all?
MLModel_MLComputeDevice all?

Enables NSArray of objc2-foundation

MLModel_MLModelCompilation all?

Enables NSError and NSURL of objc2-foundation

MLMultiArray all?

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

MLMultiArrayConstraint MLMultiArrayShapeConstraint all?

Enables NSArray, NSObject and NSValue of objc2-foundation

MLMultiArrayShapeConstraintType MLNeuralEngineComputeDevice all?
MLNumericConstraint all?

Enables NSObject, NSSet and NSValue of objc2-foundation

MLOptimizationHints MLParameterDescription all?

Enables NSObject of objc2-foundation

MLParameterKey all?

Enables NSObject and NSString of objc2-foundation

MLPredictionOptions all?

Enables NSDictionary and NSString of objc2-foundation

MLReshapeFrequencyHint all?
MLSequence all?

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

MLSequenceConstraint all?

Enables NSObject and NSRange of objc2-foundation

MLTask all?

Enables NSError and NSString of objc2-foundation

MLUpdateContext all?

Enables NSDictionary of objc2-foundation

MLUpdateProgressEvent all? = bitflags
MLUpdateProgressHandlers all?
MLUpdateTask all?

Enables NSDictionary, NSError and NSURL of objc2-foundation

MLWritable all?

Enables NSError and NSURL of objc2-foundation