rust_widgets 0.9.6

Pure Rust cross-platform native GUI library with hardware-adaptive rendering, 60+ widgets, touch/gesture support, i18n, and SVG-pipeline-accurate output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Bridge that selects between objc2 and cocoa backend (BLUE11 R1.5, R2.5).
//! Priority: objc2 (default, via objc2-macos feature) → cocoa (cocoa-legacy fallback).
//!
//! This module provides a unified Platform implementation that delegates
//! to the appropriate backend based on feature flags.
//!
//! # Migration Status (R2.5)
//! - Default: objc2 backend (via `desktop` feature which includes `objc2-macos`)
//! - Legacy: cocoa 0.24 backend (via `cocoa-legacy` feature)

/// Default: objc2 backend (activated by `macos` feature or `objc2-macos` alias).
#[cfg(any(feature = "macos", feature = "objc2-macos"))]
pub use crate::platform::macos_objc2::MacOSObjc2Platform as SelectedMacOSPlatform;

/// Legacy fallback: cocoa 0.24 backend.
#[cfg(all(not(any(feature = "macos", feature = "objc2-macos")), feature = "cocoa-legacy"))]
pub use crate::platform::macos::MacOSPlatform as SelectedMacOSPlatform;