Skip to content

embassy task: cannot cfg away task arguments #2378

@MabezDev

Description

@MabezDev
#[embassy_executor::task]
pub async fn test(
    a: u32,
    b: u32,
    #[cfg(feature = "c")] c: u32,
) {

}

Fails with cannot find value c in this scope when the feature c is not enabled. It seems argument cfg's are not applied during the transformation.

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