rust_widgets 1.1.3

Pure Rust cross-platform native GUI library with hardware-adaptive rendering, 60+ widgets, touch/gesture support, i18n, and SVG-pipeline-accurate output
// SPDX-FileCopyrightText: Copyright (c) 2026 Mike Li/Mikewolfli/Wei Li(mikewolfli@163.com)
// SPDX-License-Identifier: MIT

//! 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 = "macos"))]
pub use crate::platform::macos_objc2::MacOSObjc2Platform as SelectedMacOSPlatform;

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