Skip to content

Support parsing annotation using fully-qualified prefix #261

@stewartadam

Description

@stewartadam

This code compiles but fails to serialize as Record<String, PartialTransition> in the type definition:

#[typeshare::typeshare]
#[typeshare::typeshare(serialized_as = "Record<String, PartialTransition>")]
pub type AttributeTransitions = HashMap<Attribute, PartialTransition>;

I believe this is because typeshare does its own source code parsing and doesn't depend on the rust compiler's representation of objects. If so, it should support its own fully-qualified name as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions