#json #deserialize #serialization #settings #model #de #command

model3

data types for (de)serializing model settings from model3.json files

2 unstable releases

0.2.0 Nov 17, 2023
0.1.0 Nov 15, 2023

#2719 in Parser implementations

Download history 3/week @ 2024-02-12 24/week @ 2024-02-19 22/week @ 2024-02-26 4/week @ 2024-03-04 10/week @ 2024-03-11 9/week @ 2024-03-25 49/week @ 2024-04-01

69 downloads per month
Used in 2 crates (via orphism)

MIT license

6KB
82 lines

model3 Latest Version

What is it?

Rust data types for (de)serializing model settings from model3.json files

How do I obtain this majestic tool?

Run the following Cargo command in your project directory (assuming you have cargo-edit installed):

cargo add model3

Or add the following line to your Cargo.toml (in the [dependencies] array):

model3 = "^ 0.2"

How do I use it?

use model3::Model3;

fn main() {
  let json = std::fs::read_to_string("./path/to/some.model3.json").unwrap();
  let model3: Model3 = serde_json::from_str(&json).unwrap();
  println!("{model3:#?}");
}

How was this made?

Using the discovery process for undocumented JSON formats described here.

License

motion3 is available under the MIT License. See LICENSE.txt for the full text.

While the license is short, it's still written in fancy lawyer-speak. If you prefer more down-to-earth language, consider the following:

  • tl;drLegal has a simple visual summary available here.
  • FOSSA has a more in-depth overview available here.

Dependencies

~1.4–2.4MB
~48K SLoC