49 lines
1.1 KiB
Rust
49 lines
1.1 KiB
Rust
#![feature(unboxed_closures)]
|
|
#![feature(fn_traits)]
|
|
// Only `desktop::DesktopAppState::Event`'s default uses this; unused (and
|
|
// warned about) on the android target, which has no such default.
|
|
#![cfg_attr(not(target_os = "android"), feature(associated_type_defaults))]
|
|
#![feature(unsize)]
|
|
#![feature(option_into_flat_iter)]
|
|
#![feature(async_fn_traits)]
|
|
|
|
#[cfg(target_os = "android")]
|
|
pub mod android;
|
|
#[cfg(not(target_os = "android"))]
|
|
pub mod desktop;
|
|
|
|
pub mod diagnostics;
|
|
pub mod harness;
|
|
pub mod platform;
|
|
pub mod rsc;
|
|
pub mod widget;
|
|
|
|
// Preserve concise public paths while implementation files stay grouped.
|
|
pub use rsc::attr;
|
|
pub use rsc::{event, overlay, sense, state, task};
|
|
|
|
#[cfg(test)]
|
|
mod access_tests;
|
|
#[cfg(test)]
|
|
mod layout_tests;
|
|
|
|
pub use iris_core as core;
|
|
pub use iris_macro as macros;
|
|
|
|
pub mod prelude {
|
|
use super::*;
|
|
#[cfg(target_os = "android")]
|
|
pub use android::*;
|
|
#[cfg(not(target_os = "android"))]
|
|
pub use desktop::*;
|
|
|
|
pub use iris_core::*;
|
|
pub use iris_macro::*;
|
|
pub use platform::*;
|
|
pub use rsc::*;
|
|
pub use widget::*;
|
|
|
|
pub use iris_core::util::Vec2;
|
|
pub use len_fns::*;
|
|
}
|