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
77
#![warn(
rust_2018_idioms,
future_incompatible,
unused_extern_crates,
unused,
missing_copy_implementations,
missing_debug_implementations,
clippy::all,
clippy::restriction,
clippy::pedantic,
clippy::nursery,
clippy::cargo,
)]
#![deny(
unused_variables,
unused_assignments,
dead_code,
unused_must_use,
missing_copy_implementations,
trivial_numeric_casts,
redundant_semicolon
)]
#![forbid(unsafe_code)]
#![warn(missing_docs)]
pub mod io;
pub mod math;
pub mod chunk;
pub mod compression;
pub mod meta;
pub mod image;
pub mod error;
pub mod block;
#[macro_use]
extern crate smallvec;
#[allow(unused)]
#[cfg(test)]
extern crate image as piston_image;
pub mod prelude {
pub use crate::meta::{ self, attributes, LayerAttributes, ImageAttributes };
pub use self::attributes::{ Compression, Text, IntRect, LineOrder, SampleType, TileDescription };
pub use crate::error::{ Result, Error };
pub use crate::math::Vec2;
pub use crate::image::{
simple, rgba,
write_options, read_options,
WriteOptions, ReadOptions
};
pub use half::f16;
}