<div align="center">
# Euv-core
<img src="https://devhub.vip/pages/docs/img/euv.png" alt="Euv-core logo" height="160">
**Cross-Platform Native Runtime, Direct GPU, 3D Engine & 13 Platform Backends**
[](https://crates.io/crates/euv-core)
[](https://crates.io/crates/euv-core)
[](https://docs.rs/euv-core)
[](https://github.com/euv-dev/euv/actions)
[](https://www.rust-lang.org)
[](../LICENSE)
[Workspace Overview](../README.md) · [API Docs](https://docs.rs/euv-core/latest/) · [Agent Engineering Rules](../AGENTS.md)
</div>
---
## Overview
Core cross-platform native runtime for `euv`: 24B SBO O(1) reactive arena, Taffy-style `SplitLayoutCache` Flexbox/Grid layout with parent-relative geometry and surgical partial-layout/effect damage, SoA `SceneTree` + `Component::NEEDS_LIFECYCLE`, `CanvasCaching::RetainedStatic`, zero-cost macro Go-to-Definition schemas (`StyleProps`, `ViewElement`..`PageSlotElement`), zero-sync-probe native OS fonts with single-probe `TextShapingCache`/`GlyphAtlas`, single-backend lazy renderer with 64B `GpuPrimitiveInstance` uber-shader (WGSL/MSL/GLSL ES 3.0/HLSL + Dual-Kawase `BackdropBlur`), `AppFrameArena`/`DisplayListFrameArena` + composite-only scroll, `StartupTelemetry`/`PresentOutcome`, native 240/360/480Hz+ VSync (1000Hz ceiling, 9-tier non-degrading `FallbackPolicyEngine`), double-buffered Terminal TUI/CLI rendering, BVH4/BVH8 SIMD + object-space interpolated dynamic RT 2D/3D game engine, pure-Rust GIF89a/MP4 media decoders, Hyperlane-compatible dynamic OTA runtime, and direct platform backends across 13 targets.
## Responsibilities & Module Layout
- `reactive` — 24B SBO `SignalSlot` + O(1) intrusive edge-slab `Signal` (`with_ref`), lazy `Memo`, `Effect`, `Selector`, `Scope` (`freeze`/`resume`), `LocalState`, `GlobalState`, and typed `EventBus`
- `scene` — SoA `SceneTree` (intrusive child links), bounded 16-rect `DirtyRectSet` / `DirtyRectStrategy` + surgical portal/backdrop `effect_dependency_damage`, retained scroll/page layers (`RetainedLayerPool`), `with_current_context`, `Component::NEEDS_LIFECYCLE` zero-alloc mount fast path, `CanvasCaching::RetainedStatic`, `PageLifecycleController`, universal scroll chaining, `NodeTransition`, `TextNodeContent`, and re-exported IDE Go-to-Definition DSL schemas (`StyleProps`, `ViewElement`..`PageSlotElement`)
- `layout` — Taffy-style `SplitLayoutCache` (4-slot `measure_slots` + `final_slots`), O(1) `Display::None` frozen cache preservation, parent-relative Flexbox/Grid geometry, zero-alloc spatial `hit_test`, SafeArea insets, `LayoutTelemetry`, and surgical partial-layout conservative bounds diffing
- `font` — Zero-sync-probe lazy OS proportional/monospace/bold/italic glyph rasterization (CoreText LRU, Android NDK FreeType, persistent Linux FreeType, Win32 GDI, Web batched glyph strip) paired with single-probe `TextShapingCache` and fence-reclaimed `GlyphAtlas`
- `render` — Single-backend lazy `Renderer::new` (0 CPU framebuffer bytes in GPU direct mode), unified 5-stage `AdaptiveRenderRouter` (`RecommendOnly` / `AutoSwitch`) + `HandoffCoordinator` + `AdaptiveFrameMetrics` (`ObservableMetric` with `Unobservable` `null`, never fake zeros) + sparse-effect `HybridRenderer`, `DisplayList` + `DisplayListFrameArena`, 64B `GpuPrimitiveInstance` uber-shader (WGSL/MSL/GLSL ES 3.0/HLSL + Dual-Kawase `BackdropBlur`), hardware-fenced `GpuResourceRing`, 1000Hz / 9-tier non-degrading `FallbackPolicyEngine`, padded `BandWorkerPool` + parallel separable `BackdropBlur` software reference, and double-buffered non-GPU/non-Hz `TerminalRenderer` (`TerminalNonGpuTelemetry`, O(1) idle short-circuit, grapheme clusters, piped CLI)
- `app` & `platform` — `AppFrameArena`, composite-only scroll, `StartupTelemetry` (`t0..t7`), `PresentOutcome`, `FrameTelemetry`, `RoutePrewarmer`, `ResourceAccountant`, `SystemEvent` lifecycle (incl. 6-DOF `DeviceMotionSample` / `SystemEvent::DeviceMotion` / `use_device_motion()`) & 0% CPU/GPU background freeze, unified per-platform telemetry ingestion (`AndroidPresentTelemetry`, `IosPresentTelemetry`, `LinuxPresentTelemetry` incl. real Wayland `wl_shm` double-buffered fallback, `MacOsPresentTelemetry`, `WindowsPresentTelemetry`, `WebPresentTelemetry` + stacked dual-canvas handoff, `HostChannelCapabilities` single-channel/simulated-profile honesty), and native 240/360/480Hz+ VSync across 13 targets (`Web`, `Android`, `iOS`, `iPadOS`, `macOS`, `Windows`, `Linux`, `HarmonyOs`, `Wearable` across 9 smartwatch ecosystems incl. vivo BlueOS Watch Round/GT presets, `MiniApp`, `QuickApp`, `Terminal`, `TerminalCli`)
- `game` & `media` — `Bvh4Node` (NEON/SSE2) / `Bvh8Node` (AVX2) SIMD 4-ray packet traversal, object-space inverse-interpolated dynamic RT (0 per-VSync BVH rebuilds), zero-alloc `DoubleBufferedSnapshot` + `Copy` bitset `InputState` + `u64` ns `FrameClock`, `RenderBufferPool`/`GpuCompositeTarget`, pure-Rust LZW GIF87a/89a (`GifDecoder`/`GifStreamPlayer`), and `Arc<Mp4Demuxer>` + hardware zero-copy video pipeline (`VideoPlaybackPipeline`)
- `dynamic` — FIPS 180-4 SHA-256 / RFC 4231 HMAC-SHA256 signed `ReleaseManifest`, per-route pinned `DynamicReleaseRuntime`, host-owned `BusinessStateStore`, `DynamicComponentContract`, and background `UpdateWorker` (SSE + incremental blob resume)
## Installation & Usage
```sh
cargo add euv-core
```
## Verification
```sh
cargo run -p euv-cli -- fmt --check
cargo clippy -p euv-core --all-features --all-targets -- -D warnings
cargo test -p euv-core --all-features
```
## Documentation & Governance
- Update this `README.md` alongside any public API, macro, component, CLI, or module-boundary change per [`../AGENTS.md`](../AGENTS.md#4-unified-documentation--skill-maintenance-policy).
- Project standards and workflows live in [`../.agents/skills/euv/SKILL.md`](../.agents/skills/euv/SKILL.md).
## License
This project is licensed under the MIT License. See the [LICENSE](../LICENSE) file for details.
## Contact
For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).