gpui-form-derive 0.7.0

Macro crate for gpui-form
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use gpui_form_codegen::components::{ComponentFieldIr, ShapeOptions};

use crate::derives::gpui_form::ir::FieldAttrContext;

pub fn generate_component_field(
    field_name: &syn::Ident,
    form_type: &syn::Type,
    component: &ShapeOptions,
    _context: &FieldAttrContext,
) -> syn::Result<ComponentFieldIr> {
    component.field_ir(field_name.to_string(), form_type.clone(), None)
}