[dependencies.block2]
default-features = false
features = ["alloc"]
optional = true
version = ">=0.6.1, <0.8.0"
[dependencies.objc2]
default-features = false
features = ["std"]
optional = true
version = ">=0.6.1, <0.8.0"
[dependencies.objc2-core-foundation]
default-features = false
features = ["CFCGTypes"]
optional = true
version = "0.3.1"
[dependencies.objc2-foundation]
default-features = false
features = ["NSArray", "NSDate", "NSDictionary", "NSObject", "NSRange", "NSString", "NSURL", "NSValue", "alloc"]
optional = true
version = "0.3.1"
[features]
JSBase = []
JSContext = []
JSContextRef = []
JSExport = []
JSManagedValue = []
JSObjectRef = []
JSStringRef = []
JSStringRefCF = []
JSTypedArray = []
JSValue = []
JSValueRef = []
JSVirtualMachine = []
JavaScript = []
WebKitAvailability = []
alloc = []
block2 = ["dep:block2"]
default = ["std", "JSBase", "JSContext", "JSContextRef", "JSExport", "JSManagedValue", "JSObjectRef", "JSStringRef", "JSStringRefCF", "JSTypedArray", "JSValue", "JSValueRef", "JSVirtualMachine", "JavaScript", "WebKitAvailability", "block2", "objc2", "objc2-core-foundation", "objc2-foundation"]
objc2 = ["dep:objc2", "objc2-core-foundation?/objc2"]
objc2-core-foundation = ["dep:objc2-core-foundation"]
objc2-foundation = ["dep:objc2-foundation"]
std = ["alloc"]
[lib]
name = "objc2_javascript_core"
path = "src/lib.rs"
[lints.clippy]
ptr_as_ptr = "warn"
redundant_feature_names = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_copy_implementations = "warn"
non_ascii_idents = "deny"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "development-tools::ffi", "external-ffi-bindings", "os::macos-apis"]
description = "Bindings to the JavaScriptCore framework"
edition = "2021"
keywords = ["cocoa", "apple", "framework", "macos", "ios"]
license = "Zlib OR Apache-2.0 OR MIT"
name = "objc2-javascript-core"
readme = "README.md"
repository = "https://github.com/madsmtm/objc2"
rust-version = "1.71"
version = "0.3.1"
[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
rustc-args = ["--cfg", "docsrs"]
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-tvos", "aarch64-apple-ios-macabi", "aarch64-apple-visionos"]