Skip to content

Cfg Attributes on Model Fields Not Properly Handled #150

Open
@Electron100

Description

@Electron100

#148 duplicated the Post and PostMetadata model/dataresult types in the blog test, one for if datatime is enabled and one for if it is not. That shouldn't have been necessary -- it should be possible simply to use #cfg attributes on the field. Unfortunately, the model attribute is processed before the cfg attribute and Butane doesn't propagate the cfg properly and ends up creating references to the field that is ultimately omitted. We should check for the cfg attribute and if so propagate it to all references we create to the field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions