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
#![doc = include_str!("../README.md")]
#![doc(test(
    no_crate_inject,
    attr(
        deny(warnings, rust_2018_idioms, single_use_lifetimes),
        allow(dead_code, unused_variables)
    )
))]
#![forbid(unsafe_code)]
#![warn(
    // Lints that may help when writing public library.
    // missing_docs, // TODO
    clippy::exhaustive_enums,
    clippy::exhaustive_structs,
    clippy::impl_trait_in_params,
)]
#![allow(
    clippy::cast_lossless,
    clippy::inline_always,
    clippy::match_same_arms, // https://github.com/rust-lang/rust-clippy/issues/12044
    clippy::missing_panics_doc,
    clippy::must_use_candidate,
    clippy::unreadable_literal,
)]

#[cfg(any(feature = "collada", feature = "obj", feature = "stl"))]
#[macro_use]
mod error;

mod utils;

mod loader;
pub use loader::*;
mod common;
pub use common::*;

#[cfg(feature = "collada")]
pub mod collada;
#[cfg(feature = "obj")]
pub mod obj;
#[cfg(feature = "stl")]
pub mod stl;

// Not public API. (exposed for benchmarks)
#[doc(hidden)]
#[cfg(any(feature = "collada", feature = "obj", feature = "stl"))]
pub mod __private {
    pub use crate::utils::float;
    #[cfg(any(feature = "collada", feature = "obj"))]
    pub use crate::utils::int;
}