1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#![allow(clippy::needless_range_loop)]
#![allow(clippy::many_single_char_names)]
#![allow(clippy::useless_format)]
#![allow(clippy::single_match)]
#![allow(clippy::len_without_is_empty)]
#![allow(clippy::should_implement_trait)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::type_complexity)]
#![warn(rust_2018_idioms)]
use std::alloc::System;

#[macro_use]
extern crate log;

pub mod alloc;
pub mod application;
pub mod clock;
pub mod gfx;
#[cfg(feature = "logger")]
pub mod logger;
pub mod math;
pub mod platform;
pub mod timer;
pub mod ui;

pub use application::Application;
pub use gfx::color;
pub use ui::Widget;

pub use math::rect::{Rect, Region};
pub use math::{
    Offset, Origin, Ortho, Point, Point2D, Size, Transform, Transform3D, Vector, Vector2D,
    Vector3D, Vector4D, Zero,
};

/// Program version.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

/// Global memory allocator.
#[global_allocator]
pub static ALLOCATOR: alloc::Allocator = alloc::Allocator::new(System);