animate/
lib.rs

1#![allow(unused_imports)]
2#![allow(deprecated)]
3#![cfg_attr(feature = "cargo-clippy", allow(clippy::cast_ptr_alignment))]
4#![cfg_attr(feature = "cargo-clippy", allow(clippy::trivially_copy_pass_by_ref))]
5#![allow(
6    clippy::too_many_arguments,
7    clippy::let_and_return,
8    clippy::from_over_into,
9    clippy::upper_case_acronyms,
10    clippy::new_ret_no_self,
11    clippy::wrong_self_convention
12)]
13
14#[macro_use]
15extern crate log;
16
17mod canvas;
18pub use canvas::*;
19
20pub mod easing;
21
22pub mod tween;
23
24pub mod motion;
25
26pub mod physics;
27
28mod runtime;
29pub use runtime::*;
30
31pub mod svg;
32
33pub mod path;
34
35pub mod interpolate;
36
37#[cfg(not(target_arch = "wasm32"))]
38#[macro_use]
39extern crate glib;
40
41#[cfg(not(target_arch = "wasm32"))]
42#[macro_use]
43extern crate bitflags;
44
45#[cfg(not(target_arch = "wasm32"))]
46#[macro_use]
47mod rt;
48
49#[cfg(not(target_arch = "wasm32"))]
50#[macro_use]
51mod macros;
52
53#[cfg(not(target_arch = "wasm32"))]
54#[cfg_attr(feature = "cargo-clippy", allow(clippy::type_complexity))]
55#[cfg_attr(feature = "cargo-clippy", allow(clippy::unreadable_literal))]
56mod legacy;
57
58#[cfg(not(target_arch = "wasm32"))]
59pub mod prelude;
60
61#[cfg(not(target_arch = "wasm32"))]
62pub use legacy::*;
63
64#[cfg(not(target_arch = "wasm32"))]
65pub use self::rt::{init, quit, run, set_initialized};
66
67pub use primitives::colorspace::{Color, RgbColor, RgbaColor};
68pub use primitives::*;
69
70#[cfg(test)]
71mod tests {
72    #[test]
73    fn it_works() {
74        assert_eq!(2 + 2, 4);
75    }
76}