Skip to content

Remove limonp dependency#237

Merged
yanyiwu merged 1 commit into
yanyiwu:masterfrom
frankslin:codex/remove-limonp-dependency
Jun 9, 2026
Merged

Remove limonp dependency#237
yanyiwu merged 1 commit into
yanyiwu:masterfrom
frankslin:codex/remove-limonp-dependency

Conversation

@frankslin

Copy link
Copy Markdown
Contributor

Inline the small subset of limonp helpers that cppjieba actually uses so the project no longer needs the limonp submodule at build or checkout time.

The new cppjieba/Utils.hpp keeps the existing compatibility surface: LocalVector still exposes const T* iterators for code that depends on pointer-style begin()/end(), Split/Join/Trim/StartsWith preserve the existing string helper behavior, and XLOG/XCHECK keep the existing logging/checking API used throughout the headers.

Replace limonp includes and namespace references with the local helpers, use standard C++11 unordered containers directly, and remove the test-only Colors dependency by printing plain benchmark timing output.

Drop .gitmodules, the deps/limonp gitlink, CMake limonp discovery/include paths, the Bazel limonp target, checkout submodule options in CI, and README submodule setup instructions.

Validated with:

  • cmake --build /private/tmp/cppjieba-remove-limonp-cmake --config Release
  • ctest --test-dir /private/tmp/cppjieba-remove-limonp-cmake -C Release --verbose
  • npx --yes @bazel/bazelisk test //:bazel_smoke_test

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Inline the small subset of limonp helpers that cppjieba actually uses so the project no longer needs the limonp submodule at build or checkout time.

The new cppjieba/Utils.hpp keeps the existing compatibility surface: LocalVector still exposes const T* iterators for code that depends on pointer-style begin()/end(), Split/Join/Trim/StartsWith preserve the existing string helper behavior, and XLOG/XCHECK keep the existing logging/checking API used throughout the headers.

Replace limonp includes and namespace references with the local helpers, use standard C++11 unordered containers directly, and remove the test-only Colors dependency by printing plain benchmark timing output.

Drop .gitmodules, the deps/limonp gitlink, CMake limonp discovery/include paths, the Bazel limonp target, checkout submodule options in CI, and README submodule setup instructions. Record the dependency removal in a new Unreleased changelog entry while preserving historical release notes.

Validated with: cmake --build /private/tmp/cppjieba-remove-limonp-cmake --config Release; ctest --test-dir /private/tmp/cppjieba-remove-limonp-cmake -C Release --verbose; npx --yes @bazel/bazelisk test //:bazel_smoke_test.
@frankslin frankslin force-pushed the codex/remove-limonp-dependency branch from 78e0c42 to fb6e47f Compare June 8, 2026 18:30

@yanyiwu yanyiwu left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已核对内联的 Split/Join/Trim/StartsWithLocalVector 和日志接口与当前 limonp 实现的兼容性,并确认 Bazel、CMake、Windows ARM64 三套 CI 全部通过。移除 submodule、构建配置和文档引用的范围完整,可以合并。

@yanyiwu yanyiwu merged commit eed6bfe into yanyiwu:master Jun 9, 2026
33 checks passed
@frankslin frankslin deleted the codex/remove-limonp-dependency branch June 21, 2026 13:28
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.

2 participants