Skip to content

The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.

1.4 KB
Raw Blame
[workspace]
resolver = "2"
members = [
    "crates/jsc",
    "crates/rt",
    "crates/canvas2d",
    "crates/net",
    "crates/pocket-host",
]

[workspace.package]
version = "0.1.0"
edition = "2024"
license = "MIT"

[workspace.dependencies]
jsc = { package = "threert-jsc", path = "crates/jsc" }
rt = { package = "threert-rt", path = "crates/rt" }
canvas2d = { package = "threert-canvas2d", path = "crates/canvas2d" }
# PocketJS (pocket-nexus/pocketjs): the UI runtime, its JavaScriptCore guest and wgpu renderer.
pocket-runtime = { git = "https://github.com/pocket-nexus/pocketjs", rev = "72b7d9a8521b7e1aac55c9f1358853ded2076bce" }
pocket-drivers = { git = "https://github.com/pocket-nexus/pocketjs", rev = "72b7d9a8521b7e1aac55c9f1358853ded2076bce" }
pocket-package = { git = "https://github.com/pocket-nexus/pocketjs", rev = "72b7d9a8521b7e1aac55c9f1358853ded2076bce" }
pocket-guest-jsc = { git = "https://github.com/pocket-nexus/pocketjs", rev = "72b7d9a8521b7e1aac55c9f1358853ded2076bce" }
pocket-wgpu-render = { git = "https://github.com/pocket-nexus/pocketjs", rev = "72b7d9a8521b7e1aac55c9f1358853ded2076bce" }
pocketjs-core = { git = "https://github.com/pocket-nexus/pocketjs", rev = "72b7d9a8521b7e1aac55c9f1358853ded2076bce" }
wgpu = "25"

[profile.dev]
opt-level = 1

[profile.dev.package."*"]
opt-level = 3

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true