nestac/lib.rs
1//! # Nestac
2//! _(short for (ne)sted (st)ructure (ac)cess)_ is library to access nested
3//! structures using path-like string format.
4//!
5//! If you work with Python you're probably familiar with
6//! [glom](https://glom.readthedocs.io/en/latest/) and that is where the ideia
7//! came from.
8//!
9//! The necessity to make an implementation in Rust comes from a project
10//! initially developed in Python that had to loop through of .json files to
11//! update their properties using
12//! [glom](https://glom.readthedocs.io/en/latest/).
13//!
14//! Once we start increase the workload to 1k+ inputs the Python script started
15//! to present performance issues. That lead to the decision of rewrite the
16//! application using Rust but it would still need to support the path strings
17//! to make the property updates like.
18//!
19//! So here we are.
20
21pub mod json;
22pub mod toml;
23
24pub use json::read as json_read;
25pub use json::update as json_update;
26pub use toml::get_paths as toml_get_paths;
27pub use toml::read as toml_read;
28pub use toml::update as toml_update;