| Crates.io | otter-jsc-sys |
| lib.rs | otter-jsc-sys |
| version | 0.1.1 |
| created_at | 2026-01-15 12:36:04.321681+00 |
| updated_at | 2026-01-15 15:10:14.880359+00 |
| description | Raw FFI bindings to JavaScriptCore |
| homepage | https://github.com/octofhir/otter |
| repository | https://github.com/octofhir/otter |
| max_upload_size | |
| id | 2045473 |
| size | 45,642 |
Raw FFI bindings to JavaScriptCore C API.
This crate provides low-level unsafe bindings to JavaScriptCore (JSC), the JavaScript engine used by WebKit and Safari. It supports multiple platforms:
This crate is intended for use by higher-level wrappers. For safe Rust APIs, use the otter-jsc-core or otter-runtime crates instead.
use otter_jsc_sys::*;
unsafe {
let ctx = JSGlobalContextCreate(std::ptr::null_mut());
// ... use JSC APIs
JSGlobalContextRelease(ctx);
}
| Platform | Architecture | Method |
|---|---|---|
| macOS | x86_64, ARM64 | System framework |
| Linux | x86_64, ARM64 | bun-webkit (static) |
| Windows | x86_64 | bun-webkit (static) |
No additional dependencies required.
The build script automatically downloads pre-built bun-webkit binaries from oven-sh/WebKit.
BUN_WEBKIT_VERSION: Override the default bun-webkit versionMIT