Crates.io | nwn_nasher_types |
lib.rs | nwn_nasher_types |
version | 0.3.1 |
source | src |
created_at | 2023-05-26 21:45:04.546473 |
updated_at | 2023-06-01 06:13:55.025154 |
description | A library to parse and de/serialize the files from the nwn community tool, nasher |
homepage | https://github.com/urothis/rs_nwn_nasher_types |
repository | https://github.com/urothis/rs_nwn_nasher_types |
max_upload_size | |
id | 875415 |
size | 177,428 |
A library that provides serialization of Neverwinter Nights json files generated via Nasher
This should allow for the creation of a Rust based module tooling.
Add the following to your Cargo.toml
:
[dependencies]
nwn-nasher-types = "0.3"
use nwn_nasher_types::*;
fn main() {
let path = "src/module.ifo";
let nw = NwType::from_file_path(path).expect("Failed to open file");
match nw {
Ok(value) => {
println!("Value: {:?}", value);
}
Err(e) => {
panic!("Failed to deserialize {:?}: {}", path, e);
}
}
}