Skip to content

run_return example always builds (and fails) for non-desktop platforms #1064

@alasher

Description

@alasher

Unfortunately it looks like there isn't an easy way to fully exclude the window_run_return example for certain platforms, like mobile platforms that don't support EventLoop 2.0. The result is a compilation error when building all examples. I found that we can get it compiling by slapping cfg everywhere, but the result is a really ugly example.

Any better ideas on what to do here? The end goal is to be able to run cargo build --examples for all platforms without error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    D - easyLikely easier than most tasks hereH - good first issueIdeal for new contributorsS - docsAwareness, docs, examples, etc.S - enhancementWouldn't this be the coolest?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions