gltf_json/lib.rs
1/// Contains `Accessor` and other related data structures.
2pub mod accessor;
3
4/// Contains `Animation` and other related data structures.
5pub mod animation;
6
7/// Contains `Asset` metadata.
8pub mod asset;
9
10/// Contains `Buffer`, `View`, and other related data structures.
11pub mod buffer;
12
13/// Contains `Camera` and other related data structures.
14pub mod camera;
15
16/// Contains extension specific data structures and the names of all
17/// 2.0 extensions supported by the library.
18pub mod extensions;
19
20/// Contains `Extras`.
21pub mod extras;
22
23/// Contains `Image` and other related data structures.
24pub mod image;
25
26/// Contains `Material` and other related data structures.
27pub mod material;
28
29/// Contains `Mesh` and other related data structures.
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 accessor::Accessor;
52#[doc(inline)]
53pub use animation::Animation;
54#[doc(inline)]
55pub use asset::Asset;
56#[doc(inline)]
57pub use buffer::Buffer;
58#[doc(inline)]
59pub use camera::Camera;
60#[doc(inline)]
61pub use image::Image;
62#[doc(inline)]
63pub use material::Material;
64#[doc(inline)]
65pub use mesh::Mesh;
66#[doc(inline)]
67pub use scene::Node;
68#[doc(inline)]
69pub use scene::Scene;
70#[doc(inline)]
71pub use skin::Skin;
72#[doc(inline)]
73pub use texture::Texture;
74
75#[doc(inline)]
76pub use self::extras::Extras;
77#[doc(inline)]
78pub use self::path::Path;
79#[doc(inline)]
80pub use self::root::Index;
81#[doc(inline)]
82pub use self::root::Root;
83
84#[doc(inline)]
85pub use serde_json::Error;
86#[doc(inline)]
87pub use serde_json::Value;
88
89/// Re-exports of `serde_json` deserialization functions.
90///
91/// This module re-exports the generic serde deserialization functions
92/// so that one can deserialize data structures other than `Root` without
93/// being bound to a specific version of `serde_json`.
94pub mod deserialize {
95 pub use serde_json::{from_reader, from_slice, from_str, from_value};
96}
97
98/// Re-exports of `serde_json` serialization functions.
99///
100/// This module re-exports the generic serde serialization functions
101/// so that one can serialize data structures other than `Root` without
102/// being bound to a specific version of `serde_json`.
103pub mod serialize {
104 pub use serde_json::{
105 to_string, to_string_pretty, to_value, to_vec, to_vec_pretty, to_writer, to_writer_pretty,
106 };
107}