Crates.io | cdi3 |
lib.rs | cdi3 |
version | 0.2.0 |
source | src |
created_at | 2023-11-15 18:00:36.5305 |
updated_at | 2023-11-17 02:43:47.307146 |
description | data types for (de)serializing display settings from cdi3.json files |
homepage | |
repository | https://github.com/vtubing/cdi3 |
max_upload_size | |
id | 1036635 |
size | 5,836 |
Rust data types for (de)serializing display settings from .cdi3.json
files.
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"
fn main() {
let json = std::fs::read_to_string("./path/to/some.cdi3.json").unwrap();
let cdi3: DisplayInfo3 = serde_json::from_str(&json).unwrap();
}
Using the discovery process for undocumented JSON formats described here.
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: