You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...which would provide a clean way for users to choose their preferred backend, while minimizing friction for users that want nuit to "just work" with the standard backend for their platform (SwiftUI on macOS, GTK+ on Linux, ...).
Unfortunately, there isn't really a clean way to model this currently (April 2024), even in nightly Rust. Potential workarounds:
Introduce wrapper crates for the individual backends that use the existing target-specific dependencies mechanism.
Drawback: Introduces a lot of boilerplate and we need to publish those crates to crates.io too, so we'd have to settle for some naming scheme
Turn all backends into features, put the standard backend for every platform into the default features and make backends/features a no-op on unsupported platforms
This effectively depends on
...which would provide a clean way for users to choose their preferred backend, while minimizing friction for users that want nuit to "just work" with the standard backend for their platform (SwiftUI on macOS, GTK+ on Linux, ...).
Unfortunately, there isn't really a clean way to model this currently (April 2024), even in nightly Rust. Potential workarounds:
winit
The text was updated successfully, but these errors were encountered: