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(feature = "unstable-darwin-objc", feature(darwin_objc))]
9#![cfg_attr(docsrs, feature(doc_cfg))]
10// Update in Cargo.toml as well.
11#![doc(html_root_url = "https://docs.rs/objc2-java-script-core/0.3.2")]
12#![recursion_limit = "256"]
13
14#[cfg(feature = "alloc")]
15extern crate alloc;
16
17#[cfg(feature = "std")]
18extern crate std;
19
20mod generated;
21#[allow(unused_imports, unreachable_pub)]
22pub use self::generated::*;
23
24#[cfg(feature = "JSBase")]
25/// [Apple's documentation](https://developer.apple.com/documentation/javascriptcore/jsglobalcontextref?language=objc)
26pub type JSGlobalContextRef = *mut OpaqueJSContext;
27
28#[cfg(feature = "JSBase")]
29/// [Apple's documentation](https://developer.apple.com/documentation/javascriptcore/jsglobalcontextref?language=objc)
30pub type JSObjectRef = *mut OpaqueJSValue;