summaryrefslogtreecommitdiff
path: root/crates/utils
AgeCommit message (Collapse)Author
2026-01-12Reorganize crate structure and move documentation files魏曹先生
2026-01-08Fix typo in module name from "dada_sort" to "data_sort"魏曹先生
The module was accidentally named "dada_sort" instead of "data_sort". :)
2026-01-03Change default config format from JSON to Bincode魏曹先生
Update file extensions for sheet, share, member, and virtual file metadata to use new custom extensions (.st, .sre, .json, .vf) instead of .bcfg. Also update client-side file extensions for latest info and local sheets.
2026-01-03Refactor config loading to read files after format detection魏曹先生
2026-01-02Add support for Bincode config file format魏曹先生
2026-01-02Add ReferenceSheetNotAllowed variant to TcpTargetError魏曹先生
2025-12-18Handle zero-size files in TCP file transferWeicao-CatilGrass
Skip content transfer and verification for empty files, sending immediate confirmation from receiver.
2025-12-16Handle CRLF line endings in SHA1 tests on WindowsWeicao-CatilGrass
2025-12-16Add test data for SHA1 hash with CRLF line endingsWeicao-CatilGrass
2025-12-16Rename story.sha1 to story_lf.sha1Weicao-CatilGrass
2025-12-15Add edit mapping action for sheet operations魏曹先生
2025-11-25Improve documentation for system action and config file crates魏曹先生
2025-11-23Apply clippy suggestions魏曹先生
2025-11-22Add SHA1 string hashing function魏曹先生
2025-11-22Add quick sort implementation with custom comparison魏曹先生
2025-11-17feat: Add file status tracking and SHA1 hash system魏曹先生
- Implement SHA1 hash calculation module with async support - Add file status analysis for tracking moves, creates, and modifications - Enhance local file management with relative path handling - Update virtual file actions with improved tracking capabilities
2025-11-07Add path formatting utility and local sheet management魏曹先生
- Implement format_path_str function to clean and normalize file paths - Add LocalSheet struct for tracking local file metadata - Support CRUD operations on local sheet mappings - Integrate path formatting into local sheet operations
2025-11-07Add strip-ansi-escapes dependency to string_proc魏曹先生
2025-11-06feat: Add data structures utility module (WIP)魏曹先生
- Create data structures utility crate - Add Cargo.toml configuration - NOTE: Implementation in progress
2025-11-03update: Registry and connection improvements魏曹先生
- Update client and server registry logic - Improve TCP connection instance handling
2025-10-30Return key ID along with challenge verification result魏曹先生
- Update challenge method to return (bool, String) tuple - Include key ID in both success and failure cases - Update tests to verify key ID matches expected value - Maintain same verification logic but provide additional context
2025-10-29Add new error types and sort variants alphabetically魏曹先生
- Add Authentication, Locked, NoResult, and NotFound error variants - Remove Crypto error variant - Reorder all variants in A-Z order for better maintainability
2025-10-27Update dependencies to latest versions魏曹先生
2025-10-27update: Add error type - Locked魏曹先生
2025-10-18Update `config.rs`魏曹先生
- If config file not exist, now return Error
2025-10-13Fix Clippy warnings and optimize code魏曹先生
- Fix let_underscore_future warning by properly awaiting async functions - Make accept_import function async to match add_mapping usage - Propagate errors properly with ? operator instead of ignoring them - Replace manual Default implementation with derive attribute - Replace vec! with array literal to avoid useless_vec warning - All tests pass and code is now Clippy clean
2025-10-12refactor: Update action macros and error types魏曹先生
- Enhance action_gen macro functionality - Add new error variants for TCP connection
2025-10-06feat: add new error variants to TcpTargetError魏曹先生
- Add NotLocal error for actions requiring local execution - Add NotRemote error for actions requiring remote execution
2025-10-06Remove unused behaviour.rs file from tcp_connection魏曹先生
- Delete empty behaviour.rs file that was not being used
2025-09-29Update test files: remove obsolete test_incremental_transfer.rs and modify ↵魏曹先生
test suites
2025-09-29Add incremental transfer functionality and update core components魏曹先生
- Implement instance_incremental_transfer module for efficient file synchronization - Add support for chunk-based file transfer with hash comparison - Update TCP connection utilities to support incremental transfer protocol - Enhance error handling and version management for file synchronization - Update dependencies and integrate new functionality into main library
2025-09-29Add incremental transfer functionality and update TCP connection utilities魏曹先生
- Add instance_incremental_transfer module for handling incremental data transfers - Add test_incremental_transfer module for testing incremental transfer functionality - Update TCP connection library to support new incremental transfer features - Update Cargo.toml dependencies for TCP connection utilities - Update main library to integrate new TCP connection functionality
2025-09-28Refactor TCP connection authentication into separate module魏曹先生
- Extract challenge-response authentication code from instance.rs to new instance_challenge.rs - Add instance_challenge module declaration to lib.rs - Maintain all cryptographic functionality while improving code organization
2025-09-26refactor: downgrade tcp_connection functionality to test utilities魏曹先生
- Remove handle, target, target_configure, target_connection modules from main library - Create test_utils module in test project to contain temporary connection functionality - Update import paths in test files - Keep instance and error modules as core functionality - Adjust vcs_test configurations to adapt to new test structure
2025-09-26feat(tcp_connection): add MessagePack serialization support魏曹先生
- Add rmp-serde dependency for MessagePack serialization - Implement write_msgpack and read_msgpack methods for basic MessagePack support - Add write_large_msgpack and read_large_msgpack methods for chunked transmission - Add error conversions for rmp-serde errors - Add comprehensive tests for MessagePack functionality - Fix code formatting and improve readability - Make stream field pub(crate) for better access control All tests pass successfully, ensuring backward compatibility.
2025-09-26refactor: Update sheet input handling and fix tests魏曹先生
- Modify Sheet::add_input to accept InputPackage instead of separate parameters - Use output_mappings method to generate InputPackage in tests - Update test assertions to match new path transformation logic - Fix mapping count assertions after adding multiple mappings - Clean up string_proc module structure
2025-09-25Fix clippy warnings in test files魏曹先生
- Convert manual async functions to async fn syntax - Replace assert_eq!(true/false, ...) with assert!(...) and assert!(!...) - Fix useless vec warning by using array directly - All tests continue to pass after optimizations
2025-09-25Fix clippy warnings and optimize code魏曹先生
- Rename from_str to from_address_str in tcp_connection to avoid trait conflict - Use ? operator instead of let...else patterns in local and vault initialization - Replace manual string slicing with strip_prefix in virtual_file.rs - All tests continue to pass after optimizations
2025-09-25Fixed by Clippy魏曹先生
2025-09-22Remove redundant Sync bound from process future魏曹先生
2025-09-22Fixed some tests魏曹先生
2025-09-22Add test `test_file_transfer`魏曹先生
2025-09-22Add new resources for test魏曹先生
2025-09-22Remove `test_key`魏曹先生
2025-09-22Update lib.rs of `tcp_connection`魏曹先生
2025-09-22Fixed function `write` and `read`魏曹先生
2025-09-21Fixed Challenge魏曹先生
2025-09-21Fixed test_key魏曹先生
2025-09-21 Add test pem key魏曹先生
2025-09-21Complete Challenge魏曹先生