| Crates.io | vxde |
| lib.rs | vxde |
| version | 2.0.0-beta.0 |
| created_at | 2024-11-30 12:33:45.101401+00 |
| updated_at | 2024-12-07 08:49:54.659484+00 |
| description | A Rust library to parse .vxd files containing key-value pairs used in games or configurations. |
| homepage | https://reanore.github.io |
| repository | https://github.com/Reanore/vxde |
| max_upload_size | |
| id | 1466584 |
| size | 19,252 |
vxde is a Rust library that provides a parser for .vxd files. These files contain key-value pairs used in games or configurations, where the values can be in plaintext or serialized. The parser handles files with flexible formatting, such as varying spaces, newlines, and semicolons as delimiters.
This crate allows you to easily parse .vxd files into a HashMap of variables, supporting a wide range of input formats.
.vxd files into a HashMap of key-value pairs.vxde serialization algorithm for encoding .vxd files.vxde decoder for decoding serialized .vxd files back to plaintext."value") and non-quoted values (e.g., value)..vxd files for parsing..vxd files..vxd files..vxd files..vxd file, NAME : TYPE = VALUE;| Letter | Level |
|---|---|
| S | 5 - Invisible Update |
| A | 4 - Minor Adjustments |
| B | 3 - Moderate Effort |
| C | 2 - Extensive Changes |
| D | 1 - Complete Overhaul |
To use vxde in your Rust project, run the command:
cargo add vxde
or add it as a dependency in your Cargo.toml:
[dependencies]
vxde = "2.0.0-beta.0"
vxde includes a comprehensive test suite to ensure that the parser works correctly. These tests cover:
.vxd files.You can run the tests using the following command:
cargo test
If you'd like to contribute to vxde, feel free to open an issue or submit a pull request. Contributions are always welcome!
cargo test to ensure all tests pass.vxde is licensed under the BSD 2-Clause License. See the LICENSE file for more details.
vxde/
├── src/
│ └── lib.rs # Main library file containing the parser
├── tests/
│ ├── test_name.rs # Tests for the VxdeParser
│ └── assets/
│ ├── test_data.vxd # assets for unit tests in the src files
│ ├── test_data2.vxd
│ └── test_name.rs/ # assets for the specific test files
│ └── func_name.vxd # assets for the specific function in named test file
├── Cargo.toml # The project's metadata and dependencies
└── README.md # This README file