dotbim_rust 
Description
Open-source Rust library for dotbim file format.
Read more about dotbim here: https://github.com/paireks/dotbim
dotbim's website: https://dotbim.net/
Here you can find small manual for developers regarding development of tools that will work with .bim file format: https://github.com/paireks/dotbim/blob/master/DeveloperTips.md
Installation
https://crates.io/crates/dotbim_rust
Run the following command:
cargo add dotbim_rust
Examples
Generally you can check the unit-tests to see multiple examples. However below is one of them:
Pyramid example
let mesh = new;
let mut info: = new;
info.insert;
let mut file_info: = new;
file_info.insert;
file_info.insert;
let element = new;
let file: File = new;
let file_serialized = to_string;
let file_serialized_string = file_serialized.ok.unwrap;
let path = "created_files/Pyramid.bim";
write.expect;
Then you can check if file saved looks correct in one of the existing viewers or thanks to connectors.
It should be like that:
Libraries used
- For json serialization it uses serde, serde_json: https://serde.rs/