Skip to content

Merge develop into main - #37

Merged
caomengxuan666 merged 3 commits into
mainfrom
develop
Mar 24, 2026
Merged

caomengxuan666 merged 3 commits into
mainfrom
develop

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Merge develop branch with latest changes including:

  • feat(json): integrate nlohmann/json and add standalone release preset
  • feat(commands): add 13 new Linux utilities
  • feat: add version.hpp.in and update version handling

- Add CMake version file generation (version.hpp.in)
- Update import std UUID for CMake 4.3.0 compatibility
- Replace hardcoded version with VERSION_STRING from version.hpp
- Update PROJECT_VERSION to 0.5.3
Implement base64, tr, less, watch, jq, md5sum, sha256sum, basename, dirname, free, column, seq, and stat commands with full test coverage and documentation updates.

Changes:
- Add 13 new command implementations with comprehensive feature support
- Create unit tests for all new commands with proper test framework integration
- Update CMakeLists.txt to automatically generate command links for testing
- Update create_links.ps1 to include all 48 commands
- Update winux.ps1 CommandMap to support PowerShell activation
- Fix stack overflow in column command by using heap allocation
- Fix tr command squeeze logic for -ds mode and proper state management
Integrate nlohmann/json library v3.12.0 via C++23 modules for improved JSON parsing performance. Refactor jq command to use nlohmann/json, enabling support for JSON comments and better performance.

Changes:
- Add nlohmann/json library (v3.12.0) as module in src/utils/
- Refactor jq command to use nlohmann::json with comment support
- Add standalone-release CMake preset for building individual command executables
- Create winuxcmd-core static library containing only core modules (core, utils, container)
- Fix create-test-links dependency to ensure winuxcmd.exe is built first
- Update CMakeLists.txt to support BUILD_STANDALONE option
- Update winux.ps1 with all 48 commands

Performance improvements:
- JSON parsing with nlohmann/json: ~20-30x faster than string-based implementation
- 50-user JSON: 16ms -> 5ms
- 10000-user JSON: 1369ms -> 20ms

Standalone build creates individual executables for each command (354-477 KB each) for size analysis and distribution.
@caomengxuan666
caomengxuan666 merged commit 85d973f into main Mar 24, 2026
2 checks passed
caomengxuan666 added a commit that referenced this pull request Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant