shine_gltf/
lib.rs

1use serde_json;
2
3/// Contains `Accessor` and other related data structures.
4pub mod accessor;
5
6/// Contains `Animation` and other related data structures.
7pub mod animation;
8
9/// Contains `Asset` metadata.
10pub mod asset;
11
12/// Contains `Buffer`, `View`, and other related data structures.
13pub mod buffer;
14
15/// Contains `Camera` and other related data structures.
16pub mod camera;
17
18/// Contains extension specific data structures and the names of all
19/// 2.0 extensions supported by the library.
20pub mod extensions;
21
22/// Contains `Image` and other related data structures.
23pub mod image;
24
25/// Contains `Material` and other related data structures.
26pub mod material;
27
28/// Contains `Mesh` and other related data structures.
29#[macro_use]
30pub mod mesh;
31
32/// Contains `Path`.
33pub mod path;
34
35/// Contains `Root`.
36pub mod root;
37
38/// Contains `Scene`, `Node`, and other related data structures.
39pub mod scene;
40
41/// Contains `Skin` and other related data structures.
42pub mod skin;
43
44/// Contains `Texture`, `Sampler`, and other related data structures.
45pub mod texture;
46
47/// Contains functions that validate glTF JSON data against the specification.
48pub mod validation;
49
50#[doc(inline)]
51pub use crate::accessor::Accessor;
52#[doc(inline)]
53pub use crate::animation::Animation;
54#[doc(inline)]
55pub use crate::asset::Asset;
56#[doc(inline)]
57pub use crate::buffer::Buffer;
58#[doc(inline)]
59pub use crate::camera::Camera;
60#[doc(inline)]
61pub use crate::image::Image;
62#[doc(inline)]
63pub use crate::material::Material;
64#[doc(inline)]
65pub use crate::mesh::Mesh;
66#[doc(inline)]
67pub use crate::mesh::Primitive;
68//#[doc(inline)]
69//pub use mesh::attribute_map;
70#[doc(inline)]
71pub use crate::scene::Node;
72#[doc(inline)]
73pub use crate::scene::Scene;
74#[doc(inline)]
75pub use crate::skin::Skin;
76#[doc(inline)]
77pub use crate::texture::Texture;
78
79#[doc(inline)]
80pub use crate::path::Path;
81#[doc(inline)]
82pub use crate::root::Get;
83#[doc(inline)]
84pub use crate::root::GetMut;
85#[doc(inline)]
86pub use crate::root::Index;
87#[doc(inline)]
88pub use crate::root::Root;
89
90#[doc(inline)]
91pub use serde_json::Error;
92#[doc(inline)]
93pub use serde_json::Value;
94
95/// Re-exports of `serde_json` deserialization functions.
96///
97/// This module re-exports the generic serde deserialization functions
98/// so that one can deserialize data structures other than `Root` without
99/// being bound to a specific version of `serde_json`.
100pub mod deserialize {
101    pub use serde_json::{from_reader, from_slice, from_str, from_value};
102}
103
104/// Re-exports of `serde_json` serialization functions.
105///
106/// This module re-exports the generic serde serialization functions
107/// so that one can serialize data structures other than `Root` without
108/// being bound to a specific version of `serde_json`.
109pub mod serialize {
110    pub use serde_json::{to_string, to_string_pretty, to_value, to_vec, to_vec_pretty, to_writer, to_writer_pretty};
111}