component-shape-gpui-0.3.5 has been yanked.
component-shape-gpui
component-shape-gpui is the GPUI facade in the component-shape project
for declaring component shapes, constructing their state, rendering them, and
binding value changes. Depend on it directly for GPUI integrations; it re-exports
the shared metadata and both declaration macros.
Requires Rust 1.99 or newer and uses GPUI Kit 0.8.0.
Example
Declare a state-only InputShape to publish String compatibility
and a stable input suffix without opening a GPUI window. Omitting component
selects the non-rendering contract.
use ;
;
component_shape!
Use #[derive(GpuiComponentShape)] for an owned rendered component. The
API reference documents builders, render contracts, and value binding.