25 releases (breaking)
Uses new Rust 2024
| new 0.21.0 | Nov 26, 2026 |
|---|---|
| 0.19.1 | Nov 11, 2026 |
#6 in #host-session
49 downloads per month
29MB
445K
SLoC
Umbrella crate for the Crucible engine: one dependency for a game.
A game written against Crucible names crcbl and nothing else. This crate
re-exports the engine crates that exist at the current phase, so a project
scaffolded by crcbl new — and apps/sandbox, which is the same shape —
never spells out a workspace path per subsystem, and never gains a
dependency on a backend.
crcbl::core → crcbl-core handles, WorldPos, FrameArena, FrameClock, input
crcbl::shell → crcbl-shell the windowing seam and its backends
crcbl::hal → crcbl-hal the GPU seam, plus the recording null backend
crcbl::render → crcbl-render the render graph, cameras, the forward frame
crcbl::reflect → crcbl-reflect a component's editable fields, for the inspector
crcbl::scene → crcbl-scene the `.scn/` format (`scn`), glTF import (`scene`)
crcbl::shaders → crcbl-shaders the engine's shaders, as SPIR-V
crcbl::ui → crcbl-ui draw lists, the glyph atlas, HUD widgets
crcbl::vfx → crcbl-vfx particle effects, pooled and hashed (feature `vfx`)
crcbl::inventory → crcbl-inventory grids, items, placement and stacking (feature `inventory`)
crcbl::ecs → crcbl-ecs the world, components, systems, the schedule
crcbl::anim → crcbl-anim skeletons, clips, sampling, palettes, the state machine
crcbl::nav → crcbl-nav ground-grid routing and bounded reach
crcbl::phys → crcbl-phys rigid bodies, colliders, forces, queries
crcbl::net → crcbl-net the transport seam and the wire protocol
crcbl::server → crcbl-server the authoritative simulation and its hash
crcbl::client → crcbl-client prediction, reconciliation, interpolation
crcbl::input → crcbl-input action maps and bindings
crcbl::audio → crcbl-audio the mixer, the sound bank, the cue grammar
crcbl::store → crcbl-store platform storage and atomic writes
crcbl::steam → crcbl-steam Steamworks, loaded at run time (feature `steam`)
crcbl::sprite → crcbl-sprite sheets, clips and the baked-pair reader
crcbl::webgpu → crcbl-webgpu the wasm → JS command stream (wasm32 only)
crcbl::math → glam the maths the renderer's types are spelled in
crcbl::log → log the logging facade the engine records through
crcbl::backend → (this crate) runtime GPU backend selection
crcbl::adapter → (this crate) which adapter inside that backend
crcbl::acoustic_path → (this crate) the barriers a sound's route crosses
crcbl::occlusion → (this crate) occlusion rays to a voice's muffling, under a budget
crcbl::engine → (this crate) the shell↔HAL join every sample repeats
crcbl::ui_nav → (this crate) the `ui` actions as the UI tree's NavInput
crcbl::lan → (this crate) LAN host, join and browse (native only)
crcbl::replay_record → (this crate) a host's session to a `.crpl` file (native only)
crcbl::scene_edit → (this crate) a scene edited by command, its history, its server (`scene`)
One dependency is the whole point, and it took until S3 to mean it
The list above used to stop at crcbl::math, and the six entries it had
were the graphics stack. Everything a game does that is not drawing — the
ECS, physics, the server and client, input, audio, saves, sprites — had no
re-export, so each of apps/{breakout,flappy,asteroids,horde} named eleven
workspace paths beside this one and apps/sandbox was the only consumer
shaped like the thing this crate promises.
Nine of those crates are here now. None of them depends on crcbl,
which is what makes it nine pub use lines rather than a restructuring:
the dependency arrows all already pointed this way.
What is deliberately not here
- No backend type.
crcbl-vkis a dependency as of P1.1 — something has to be, orbackend::opencould not exist — but it is not re-exported, and noVkInstanceis reachable from this crate's public API. Topic 11 (docs/notes/tooling.md) names "a sample linkingcrcbl-vkdirectly" as an architecture regression; the registry is what stops a sample needing to.apps/sandboxasks forGpuBackend::Vulkanby value and holds aBox<dyn Instance>. Seebackendfor the full argument. - No engine loop. There is no
crcbl::run(game). The loop shape isfn tick(dt)driven by an outer loop the host owns — the browser requires it, because on wasm that outer loop isrequestAnimationFrame, which calls the engine and cannot be called by it.crcbl-shell's crate docs spell out the consequence: a framework-shapedrun()would compile on wasm and deadlock on the first frame.apps/sandboxand thecrcbl newtemplate each own their loop, and each is short because owning it is cheap.
Stability
Provisional, like both seams below it. The re-export list grows one line per
phase (crcbl-render at P1, crcbl-ecs / crcbl-net at P2, …); nothing
here is expected to be removed.
Dependencies
~16–43MB
~844K SLoC