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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#![allow(unused_imports)]
#![allow(deprecated)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::cast_ptr_alignment))]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))]
#![allow(
    clippy::too_many_arguments,
    clippy::let_and_return,
    clippy::from_over_into,
    clippy::upper_case_acronyms,
    clippy::new_ret_no_self,
    clippy::wrong_self_convention
)]

#[macro_use]
extern crate log;

mod canvas;
pub use canvas::*;

pub mod easing;

pub mod tween;

pub mod motion;

pub mod physics;

mod runtime;
pub use runtime::*;

pub mod svg;

pub mod path;

pub mod interpolate;

#[cfg(not(target_arch = "wasm32"))]
#[macro_use]
extern crate glib;

#[cfg(not(target_arch = "wasm32"))]
#[macro_use]
extern crate bitflags;

#[cfg(not(target_arch = "wasm32"))]
#[macro_use]
mod rt;

#[cfg(not(target_arch = "wasm32"))]
#[macro_use]
mod macros;

#[cfg(not(target_arch = "wasm32"))]
#[cfg_attr(feature = "cargo-clippy", allow(clippy::type_complexity))]
#[cfg_attr(feature = "cargo-clippy", allow(clippy::unreadable_literal))]
mod legacy;

#[cfg(not(target_arch = "wasm32"))]
pub mod prelude;

#[cfg(not(target_arch = "wasm32"))]
pub use legacy::*;

#[cfg(not(target_arch = "wasm32"))]
pub use self::rt::{init, quit, run, set_initialized};

pub use primitives::colorspace::{Color, RgbColor, RgbaColor};
pub use primitives::*;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}