Skip to content

Check errors with derive macro attributes #989

Open
@piegamesde

Description

@piegamesde

Bug description

The CompositeTemplate macro (and probably others too) currently do not sufficiently check the validity of present attributes. So instead of getting a compile error, things will silently fail.

#[derive(CompositeTemplate, Default)]
#[template(file = "../../res/window.ui")]
pub struct CustomWidget {
	#[template]
    header: adw::HeaderBar,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions