uzor — feature-gated facade over the uzor rendering ecosystem.
This crate always re-exports the core rendering traits and utilities. Each rendering backend is compiled only when the corresponding feature flag is enabled, so downstream crates pull in exactly the backends they need.
Features
| Feature | Backend crate | Context type |
|---|---|---|
vello-gpu (default) |
uzor-backend-vello-gpu |
[VelloGpuRenderContext] |
vello-cpu |
uzor-backend-vello-cpu |
[VelloCpuRenderContext] |
vello-hybrid |
uzor-backend-vello-hybrid |
[VelloHybridRenderContext] |
tiny-skia |
uzor-backend-tiny-skia |
[TinySkiaCpuRenderContext] |
canvas2d |
uzor-backend-canvas2d |
[Canvas2dRenderContext] |
Convenience groups
all-cpu—vello-cpu+tiny-skiaall-gpu—vello-gpu+vello-hybridall-wasm—canvas2d
Example
# Cargo.toml — only the GPU backend
[]
= { = "...", = ["vello-gpu"] }
# CPU-only (e.g. for headless rendering / tests)
= { = "...", = ["vello-cpu"], = false }