1#![allow(clippy::needless_range_loop)]
2#![allow(clippy::many_single_char_names)]
3#![allow(clippy::useless_format)]
4#![allow(clippy::single_match)]
5#![allow(clippy::len_without_is_empty)]
6#![allow(clippy::should_implement_trait)]
7#![allow(clippy::too_many_arguments)]
8#![allow(clippy::type_complexity)]
9#![warn(rust_2018_idioms)]
10use std::alloc::System;
11
12#[macro_use]
13extern crate log;
14
15pub mod alloc;
16pub mod application;
17pub mod clock;
18pub mod gfx;
19#[cfg(feature = "logger")]
20pub mod logger;
21pub mod math;
22pub mod platform;
23pub mod timer;
24pub mod ui;
25
26pub use application::Application;
27pub use gfx::color;
28pub use ui::Widget;
29
30pub use math::rect::{Rect, Region};
31pub use math::{
32 Offset, Origin, Ortho, Point, Point2D, Size, Transform, Transform3D, Vector, Vector2D,
33 Vector3D, Vector4D, Zero,
34};
35
36pub const VERSION: &str = env!("CARGO_PKG_VERSION");
38
39#[global_allocator]
41pub static ALLOCATOR: alloc::Allocator = alloc::Allocator::new(System);