aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* fix(deps): update all digest updatesrenovate[bot]8 hours1-1/+1
|
* feat: добавить поддержку атомарной замены ↵Valentin Popov10 hours4-12/+171
| | | | файлов для Windows и тесты на максимальную длину имени
* feat: обновить методы обработки данных и ↵Valentin Popov10 hours7-31/+215
| | | | улучшить обработку ошибок в библиотеке
* feat: добавить тесты для проверки ↵Valentin Popov10 hours3-1/+355
| | | | структурных инвариантов и корректности сортировки в RsLi
* fix: обработка выхода за пределы индекса ↵Valentin Popov47 hours4-21/+116
| | | | сортировки в архиве и улучшение декодирования LZSS с поддержкой XOR
* Implement LZSS decompression with optional XOR decryptionValentin Popov47 hours9-681/+700
| | | | | | | | | - Added `lzss_decompress_simple` function for LZSS decompression in `lzss.rs`. - Introduced `XorState` struct and `xor_stream` function for XOR decryption in `xor.rs`. - Updated `mod.rs` to include new LZSS and XOR modules. - Refactored `parse_library` function in `parse.rs` to utilize the new XOR decryption functionality. - Cleaned up and organized code in `lib.rs` by removing redundant functions and structures. - Added tests for new functionality in `tests.rs`.
* feat: добавить библиотеку common с ресурсами и ↵Valentin Popov47 hours9-97/+208
| | | | буферами вывода; обновить зависимости в nres и rsli
* feat: добавить новые тесты для обработки ↵Valentin Popov2 days1-0/+205
| | | | не-NRes байтов и минимальной структуры архива
* fix: добавить проверку на наличие архивов в ↵Valentin Popov2 days2-3/+14
| | | | тестах для nres и rsli
* feat: добавить README для библиотеки nres с ↵Valentin Popov2 days2-0/+100
| | | | описанием функционала и тестирования
* Refactor tests and move them to a dedicated moduleValentin Popov2 days4-428/+1397
| | | | | | | | | - Moved the test suite from `lib.rs` to a new `tests.rs` file for better organization. - Added a `SyntheticRsliEntry` struct to facilitate synthetic test cases. - Introduced `RsliBuildOptions` struct to manage options for building RsLi byte arrays. - Implemented various utility functions for file handling, data compression, and bit manipulation. - Enhanced the `rsli_read_unpack_and_repack_all_files` test to validate all RsLi archives. - Added new tests for synthetic entries covering all packing methods, overlay handling, and validation error cases.
* feat: add initial implementation of rsli crateValentin Popov2 days8-0/+2353
- Created Cargo.toml for the rsli crate with flate2 dependency. - Implemented ResourceData enum for handling borrowed and owned byte slices. - Added OutputBuffer trait and its Vec<u8> implementation for writing data. - Defined a comprehensive Error enum for error handling in the library. - Developed the Library struct to manage resource entries and provide methods for loading and unpacking resources. - Implemented various packing methods and decompression algorithms, including LZSS and Deflate. - Added tests for validating the functionality of the rsli library against sample data.