Cargo Features

[dependencies]
objc2-javascript-core = { version = "0.3.1", default-features = false, features = ["std", "alloc", "block2", "objc2", "objc2-core-foundation", "objc2-foundation", "JSBase", "JSExport", "JSStringRef", "JSValue", "JSValueRef", "JavaScript", "WebKitAvailability"] }
default = JSBase, JSContext, JSContextRef, JSExport, JSManagedValue, JSObjectRef, JSStringRef, JSStringRefCF, JSTypedArray, JSValue, JSValueRef, JSVirtualMachine, JavaScript, WebKitAvailability, block2, objc2, objc2-core-foundation, objc2-foundation, std

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

std default = alloc
alloc std
block2 default

Enables block2

objc2 default

Enables objc2, objc2 of optional objc2-core-foundation

objc2-core-foundation default

Enables objc2-core-foundation

Affects JSStringRefCF::JSStringCreateWithCFString, JSStringRefCF::JSStringCopyCFString

objc2-foundation default

Enables objc2-foundation

Affects JSValue::JSValueProperty, JSValue::JSPropertyDescriptorWritableKey, JSValue::JSPropertyDescriptorEnumerableKey, JSValue::JSPropertyDescriptorConfigurableKey, JSValue::JSPropertyDescriptorValueKey, JSValue::JSPropertyDescriptorGetKey, JSValue::JSPropertyDescriptorSetKey

JSBase default

Affects JSContextRef::JSGlobalContextCreate, JSContextRef::JSGlobalContextCreateInGroup, JSContextRef::JSGlobalContextRetain, JSContextRef::JSGlobalContextRelease, JSContextRef::JSGlobalContextCopyName, JSContextRef::JSGlobalContextSetName, JSContextRef::JSGlobalContextIsInspectable, JSContextRef::JSGlobalContextSetInspectable, JSContextRef::JSContextGroupCreate, JSContextRef::JSContextGroupRetain, JSContextRef::JSContextGroupRelease, JSContextRef::JSContextGetGlobalObject, JSContextRef::JSContextGetGroup, JSContextRef::JSContextGetGlobalContext, JSObjectRef::JSObjectInitializeCallback, JSObjectRef::JSObjectFinalizeCallback, JSObjectRef::JSObjectHasPropertyCallback, JSObjectRef::JSObjectGetPropertyCallback, JSObjectRef::JSObjectSetPropertyCallback, JSObjectRef::JSObjectDeletePropertyCallback

JSContext JSContextRef JSExport default
JSManagedValue JSObjectRef JSStringRef default
JSStringRefCF JSTypedArray JSValue default
JSValueRef default

Affects JSObjectRef::JSObjectConvertToTypeCallback, JSObjectRef::JSClassDefinition, JSObjectRef::kJSClassDefinitionEmpty, JSObjectRef::JSClassCreate, JSTypedArray::JSObjectMakeTypedArray, JSTypedArray::JSObjectMakeTypedArrayWithBytesNoCopy, JSTypedArray::JSObjectMakeTypedArrayWithArrayBuffer, JSTypedArray::JSObjectMakeTypedArrayWithArrayBufferAndOffset

JSVirtualMachine JavaScript default
WebKitAvailability default