Skip to content

#[doc = ...] fails to parse with uniffi attribute macros #2134

@notmgsk

Description

@notmgsk

This does not work

#[doc = std::concat!("A", "has a", "B")]
#[derive(uniffi::Enum)]
pub enum A {
    B,
}

but this does (without the derive)

#[doc = std::concat!("C", "has a", "D")]
pub enum C {
    D,
}

and this also works (using only a trivial string for the doc)

#[doc = "A has a B"]
#[derive(uniffi::Enum)]
pub enum A {
    B,
}

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