objc2_javascript_core/
lib.rs

1//! # Bindings to the `JavaScriptCore` framework
2//!
3//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
4//!
5//! [apple-doc]: https://developer.apple.com/documentation/javascriptcore/
6//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
7#![no_std]
8#![cfg_attr(docsrs, feature(doc_auto_cfg))]
9// Update in Cargo.toml as well.
10#![doc(html_root_url = "https://docs.rs/objc2-java-script-core/0.3.1")]
11#![recursion_limit = "256"]
12
13#[cfg(feature = "alloc")]
14extern crate alloc;
15
16#[cfg(feature = "std")]
17extern crate std;
18
19mod generated;
20#[allow(unused_imports, unreachable_pub)]
21pub use self::generated::*;
22
23#[cfg(feature = "JSBase")]
24/// [Apple's documentation](https://developer.apple.com/documentation/javascriptcore/jsglobalcontextref?language=objc)
25pub type JSGlobalContextRef = *mut OpaqueJSContext;
26
27#[cfg(feature = "JSBase")]
28/// [Apple's documentation](https://developer.apple.com/documentation/javascriptcore/jsglobalcontextref?language=objc)
29pub type JSObjectRef = *mut OpaqueJSValue;