2 unstable releases

0.2.0 Nov 17, 2023
0.1.0 Nov 15, 2023

#945 in Parser implementations

Download history 53/week @ 2023-11-11 17/week @ 2023-11-18 24/week @ 2023-11-25 13/week @ 2023-12-02 8/week @ 2023-12-09 10/week @ 2023-12-16 12/week @ 2023-12-23 4/week @ 2023-12-30 8/week @ 2024-01-06 8/week @ 2024-01-13 8/week @ 2024-01-20 14/week @ 2024-01-27 8/week @ 2024-02-03 15/week @ 2024-02-10 67/week @ 2024-02-17

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

MIT license

5KB

cdi3 Latest Version

What is it?

Rust data types for (de)serializing display settings from .cdi3.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 cdi3

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

cdi3 = "^ 0.2"

How do I use it?

fn main() {
  let json = std::fs::read_to_string("./path/to/some.cdi3.json").unwrap();
  let cdi3: DisplayInfo3 = serde_json::from_str(&json).unwrap();
}

How was this made?

Using the discovery process for undocumented JSON formats described here.

License

cdi3 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